THERE'S NO ANTIDOTE
This commit is contained in:
parent
037a86cd41
commit
7dcde1c752
1 changed files with 0 additions and 26 deletions
|
@ -215,32 +215,6 @@ namespace ShiftOS.Server
|
|||
WriteEncFile(savefile, JsonConvert.SerializeObject(save));
|
||||
}
|
||||
|
||||
var wr = HttpWebRequest.Create(UserConfig.Get().UniteUrl + "/API/GetCodepoints");
|
||||
wr.Headers.Add("Authentication: Token " + save.UniteAuthToken);
|
||||
try
|
||||
{
|
||||
using (var resp = wr.GetResponse())
|
||||
{
|
||||
using (var str = resp.GetResponseStream())
|
||||
{
|
||||
using (var reader = new StreamReader(str))
|
||||
{
|
||||
Console.WriteLine("This user has " + reader.ReadToEnd() + " Codepoint(s).");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex);
|
||||
Program.server.DispatchTo(new Guid(guid), new NetObject("auth_failed", new ServerMessage
|
||||
{
|
||||
Name = "mud_login_denied",
|
||||
GUID = "server"
|
||||
}));
|
||||
return;
|
||||
}
|
||||
|
||||
Program.server.DispatchTo(new Guid(guid), new NetObject("mud_savefile", new ServerMessage
|
||||
{
|
||||
Name = "mud_savefile",
|
||||
|
|
Reference in a new issue