private static void Handle_SignIn_Continue(ArcheAgeConnection net, PacketReader reader) { //HOW TO DECRYPT IT ???? //string password = ""; //If the account is not empty, login fails if (net.CurrentAccount == null) { //Return login failure information net.SendAsync(new NP_FailLogin()); return; } /* TODO * if (net.CurrentAccount.Password == null) * { * //Means - New Account. * net.CurrentAccount.Password = password; * } * else * { * //Checking Password * if (net.CurrentAccount.Password != password) * { * net.SendAsync(new NP_FailLogin()); * return; * } * } */ net.SendAsync(new NP_AcceptLogin(clientVersion)); net.CurrentAccount.Session = net.GetHashCode(); net.SendAsync(new NP_PasswordCorrect(net.CurrentAccount.Session)); Logger.Trace("Account login: " + net.CurrentAccount.Name); GameServerController.AuthorizedAccounts.Add(net.CurrentAccount.AccountId, net.CurrentAccount); }
private static void Handle_SignIn_Continue(ArcheAgeConnection net, PacketReader reader) { //HOW TO DECRYPT IT ???? string password = ""; if (net.CurrentAccount == null) { net.SendAsync(new NP_FailLogin()); return; } /* TODO if (net.CurrentAccount.Password == null) { //Means - New Account. net.CurrentAccount.Password = password; } else { //Checking Password if (net.CurrentAccount.Password != password) { net.SendAsync(new NP_FailLogin()); return; } } */ net.CurrentAccount.Session = net.GetHashCode(); net.SendAsync(new NP_PasswordCorrect(net.CurrentAccount.Session)); Logger.Trace("Account Logged In: " + net.CurrentAccount.Name); GameServerController.AuthorizedAccounts.Add(net.CurrentAccount.AccountId, net.CurrentAccount); }