Skip to content

Commit

Permalink
#398 correct the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaopeng-he committed May 31, 2018
1 parent ef8f72c commit f20012c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public User authenticate(String username, String password) throws SaturnJobConso

User user = userRepository.select(username);
if (user == null) {
throw new SaturnJobConsoleException(SaturnJobConsoleException.ERROR_CODE_AUTHN_FAIL, "用户名或密码不正确");
throw new SaturnJobConsoleException(SaturnJobConsoleException.ERROR_CODE_AUTHN_FAIL, "用户名不存在");
}

PasswordUtils.validate(password, user.getPassword(), hashMethod);
Expand Down

0 comments on commit f20012c

Please sign in to comment.