Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Read the user authentication.
- in.readInt(); // Skip the user ID.
- String username = in.readString();
- String password = in.readString();
- int[] returnCodes = server.vb.checkUser(username,password);
- int usergroupId = returnCodes[1];
- //player.setUsername(username);
- //PlayerSave.load(player);
- if (password != null && player.getPassword() != null && player.getPassword() != "" &&
- !player.getPassword().equals(password)) {
- player.setReturnCode(Constants.LOGIN_RESPONSE_INVALID_CREDENTIALS);
- } else {
- player.setPassword(password);
- }
- //player.setUsername(NameUtil.uppercaseFirstLetter(player.getUsername()));
- player.login();
- player.setLoginStage(LoginStages.LOGGED_IN);
- break;
- }
- }
- }
Add Comment
Please, Sign In to add comment