Guest User

Untitled

a guest
Jan 15th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. // Read the user authentication.
  2. in.readInt(); // Skip the user ID.
  3. String username = in.readString();
  4. String password = in.readString();
  5. int[] returnCodes = server.vb.checkUser(username,password);
  6. int usergroupId = returnCodes[1];
  7. //player.setUsername(username);
  8. //PlayerSave.load(player);
  9. if (password != null && player.getPassword() != null && player.getPassword() != "" &&
  10. !player.getPassword().equals(password)) {
  11. player.setReturnCode(Constants.LOGIN_RESPONSE_INVALID_CREDENTIALS);
  12. } else {
  13. player.setPassword(password);
  14. }
  15. //player.setUsername(NameUtil.uppercaseFirstLetter(player.getUsername()));
  16. player.login();
  17. player.setLoginStage(LoginStages.LOGGED_IN);
  18. break;
  19. }
  20. }
  21.  
  22. }
Add Comment
Please, Sign In to add comment