refactor: 用户名或密码错误的时候显示信息修改

This commit is contained in:
Captain.B 2021-01-21 15:15:41 +08:00
parent 8699187673
commit 44152ef296
1 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ public class ShiroDBRealm extends AuthorizingRealm {
if (user == null) {
msg = "The user does not exist: " + userId;
logger.warn(msg);
throw new UnknownAccountException(Translator.get("password_is_incorrect") + userId);
throw new UnknownAccountException(Translator.get("password_is_incorrect"));
}
}
return user;
@ -119,7 +119,7 @@ public class ShiroDBRealm extends AuthorizingRealm {
if (user == null) {
msg = "The user does not exist: " + userId;
logger.warn(msg);
throw new UnknownAccountException(Translator.get("password_is_incorrect") + userId);
throw new UnknownAccountException(Translator.get("password_is_incorrect"));
}
userId = user.getId();
}