LobbyServer.ASK_LOGIN.Register C# (CSharp) Method

Register() static public method

static public Register ( LobbyClient client ) : void
client LobbyClient
return void
        static public void Register(LobbyClient client)
        {
            String Id = Convert.ToString(client.Account.Index);
            String Pass = client.Account.Password;
            Byte[] salt = new byte[10];
            Random random = new Random();
            random.NextBytes(salt);
            random = null;
            client.Account.Salt = (new FrameWork.NetWork.Crypto.BigInteger(1, salt)).ToString(16);
            client.Account.Verifier = Auth.computeVerifier(salt, Id, Pass).ToString(16);
            Databases.AccountTable.Update(client.Account);
        }
    }