User tmpUser = this.userAdministration.loginUser(name, password); if (tmpUser == null) { System.out.println("login user " + name + " failed"); this.sendCommand( new Util.Commands.LoginErrorCommand()); this.setUser(null); } else { System.out.println("User " + this.user.getName() + " logged in"); this.setUser(tmpUser); if (this.user.isAdmin()) { System.out.println("becoming AdminClientServant"); this.becomeAdminClientServant(); } }
User tmpUser = this.userAdministration.loginUser(name, password);  if (tmpUser == null) { Debug.println("ClientServant: login user " + name + " failed"); this.sendCommand(new Util.Commands.LoginErrorCommand()); this.setUser(null); } else { Debug.println("ClientServant: User " + user.getName() + " logged in"); this.setUser(tmpUser);  if (this.user.isAdmin()) { Debug.println("ClientServant: becoming AdminClientServant"); this.becomeAdminClientServant(); }
    public void loginUser(String name, String password) {        User tmpUser = this.userAdministration.loginUser(name, password);        if (tmpUser == null) {            System.out.println("login user " + name + " failed");            this.sendCommand(                new Util.Commands.LoginErrorCommand());            this.setUser(null);        }        else {            System.out.println("User " + this.user.getName() + " logged in");            this.setUser(tmpUser);            if (this.user.isAdmin()) {                System.out.println("becoming AdminClientServant");                this.becomeAdminClientServant();            }        }    }