Code:
[COLOR="SeaGreen"] /*public static Main.AuthWorker.AuthInfo Authenticate(string User, string Password)
{
Main.AuthWorker.AuthInfo Info = new NewestCOServer.Main.AuthWorker.AuthInfo();
Info.Account = User;
try
{
IniFile File = new IniFile("C:\\OldCODB\\Users\\" + User + ".usr");
string RealAccount = File.ReadString("User", "account");
if (User == RealAccount)
{
string RealPassword = File.ReadString("User", "password");
RealPassword = Main.PassCrypto.EncryptPassword(RealPassword);
if (RealPassword == Password)
{
Info.Status = File.ReadString("User", "status");
Info.Character = File.ReadString("User", "character");
if (Info.Character == "")
Info.LogonType = 2;
else
Info.LogonType = 1;
}
else
Info.LogonType = 255;
}
else
Info.LogonType = 255;
File.Close();
}
catch (Exception Exc) { Program.WriteLine(Exc); }
return Info;
}*/[/COLOR]






