Server.Monitor.login C# (CSharp) Méthode

login() public méthode

public login ( string username, string password ) : void
username string
password string
Résultat void
        public override void login(string username, string password)
        {
            if (username == "arjen" && password == "mourik")
            {
                sendPacket(new PacketLoginResponse() {loginOk = true, dir = _storage.GetDir()});
            }
            else
            {
                sendPacket(new PacketLoginResponse() {loginOk = false});
                _server.ResetMonitor();
            }
        }