Skip to content

Commit f20012c

Browse files
committed
vipshop#398 correct the error message
1 parent ef8f72c commit f20012c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

saturn-console-api/src/main/java/com/vip/saturn/job/console/service/impl/AuthenticationServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public User authenticate(String username, String password) throws SaturnJobConso
2727

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

3333
PasswordUtils.validate(password, user.getPassword(), hashMethod);

0 commit comments

Comments
 (0)