parent
0be924475b
commit
45c65497ce
|
@ -105,7 +105,7 @@ public class ShiroDBRealm extends AuthorizingRealm {
|
||||||
if (user == null) {
|
if (user == null) {
|
||||||
msg = "The user does not exist: " + userId;
|
msg = "The user does not exist: " + userId;
|
||||||
logger.warn(msg);
|
logger.warn(msg);
|
||||||
throw new UnknownAccountException(Translator.get("user_not_exist") + userId);
|
throw new UnknownAccountException(Translator.get("password_is_incorrect") + userId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return user;
|
return user;
|
||||||
|
@ -119,7 +119,7 @@ public class ShiroDBRealm extends AuthorizingRealm {
|
||||||
if (user == null) {
|
if (user == null) {
|
||||||
msg = "The user does not exist: " + userId;
|
msg = "The user does not exist: " + userId;
|
||||||
logger.warn(msg);
|
logger.warn(msg);
|
||||||
throw new UnknownAccountException(Translator.get("user_not_exist") + userId);
|
throw new UnknownAccountException(Translator.get("password_is_incorrect") + userId);
|
||||||
}
|
}
|
||||||
userId = user.getId();
|
userId = user.getId();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ password_modification_failed=The old password is wrong. Please re-enter it
|
||||||
cannot_delete_current_user=Cannot delete the user currently logged in
|
cannot_delete_current_user=Cannot delete the user currently logged in
|
||||||
user_already_exists=The user already exists in the current member list
|
user_already_exists=The user already exists in the current member list
|
||||||
cannot_remove_current=Unable to remove the currently logged in user
|
cannot_remove_current=Unable to remove the currently logged in user
|
||||||
password_is_incorrect=Incorrect password
|
password_is_incorrect=Incorrect password or username
|
||||||
user_not_exist=user does not exist:
|
user_not_exist=user does not exist:
|
||||||
user_has_been_disabled=the user has been disabled.
|
user_has_been_disabled=the user has been disabled.
|
||||||
excessive_attempts=Excessive attempts
|
excessive_attempts=Excessive attempts
|
||||||
|
|
|
@ -21,7 +21,7 @@ connection_failed=连接失败
|
||||||
user_already_exists=该用户已存在于当前成员列表中
|
user_already_exists=该用户已存在于当前成员列表中
|
||||||
cannot_remove_current=无法移除当前登录用户
|
cannot_remove_current=无法移除当前登录用户
|
||||||
login_fail=登录失败
|
login_fail=登录失败
|
||||||
password_is_incorrect=密码不正确
|
password_is_incorrect=用户名或密码不正确
|
||||||
user_not_exist=用户不存在:
|
user_not_exist=用户不存在:
|
||||||
user_has_been_disabled=用户已被禁用
|
user_has_been_disabled=用户已被禁用
|
||||||
excessive_attempts=操作频繁
|
excessive_attempts=操作频繁
|
||||||
|
|
|
@ -20,7 +20,7 @@ password_modification_failed=舊密碼輸入錯誤,請重新輸入
|
||||||
cannot_delete_current_user=無法刪除當前登錄用戶
|
cannot_delete_current_user=無法刪除當前登錄用戶
|
||||||
user_already_exists=該用戶已存在於當前成員列表中
|
user_already_exists=該用戶已存在於當前成員列表中
|
||||||
cannot_remove_current=無法移除當前登錄用戶
|
cannot_remove_current=無法移除當前登錄用戶
|
||||||
password_is_incorrect=密碼不正確
|
password_is_incorrect=用戶名或密碼不正確
|
||||||
user_not_exist=用戶不存在:
|
user_not_exist=用戶不存在:
|
||||||
user_has_been_disabled=用戶已被禁用
|
user_has_been_disabled=用戶已被禁用
|
||||||
excessive_attempts=操作頻繁
|
excessive_attempts=操作頻繁
|
||||||
|
|
Loading…
Reference in New Issue