diff --git a/backend/src/main/java/io/metersphere/security/realm/ShiroDBRealm.java b/backend/src/main/java/io/metersphere/security/realm/ShiroDBRealm.java index 3d4a5ed12d..6fc4f95698 100644 --- a/backend/src/main/java/io/metersphere/security/realm/ShiroDBRealm.java +++ b/backend/src/main/java/io/metersphere/security/realm/ShiroDBRealm.java @@ -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("user_not_exist") + userId); + throw new UnknownAccountException(Translator.get("password_is_incorrect") + userId); } } 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("user_not_exist") + userId); + throw new UnknownAccountException(Translator.get("password_is_incorrect") + userId); } userId = user.getId(); } diff --git a/backend/src/main/resources/i18n/messages_en_US.properties b/backend/src/main/resources/i18n/messages_en_US.properties index 8ccf687304..1a5222966c 100644 --- a/backend/src/main/resources/i18n/messages_en_US.properties +++ b/backend/src/main/resources/i18n/messages_en_US.properties @@ -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 user_already_exists=The user already exists in the current member list 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_has_been_disabled=the user has been disabled. excessive_attempts=Excessive attempts diff --git a/backend/src/main/resources/i18n/messages_zh_CN.properties b/backend/src/main/resources/i18n/messages_zh_CN.properties index 30d7aa1353..2d077f1e49 100644 --- a/backend/src/main/resources/i18n/messages_zh_CN.properties +++ b/backend/src/main/resources/i18n/messages_zh_CN.properties @@ -21,7 +21,7 @@ connection_failed=连接失败 user_already_exists=该用户已存在于当前成员列表中 cannot_remove_current=无法移除当前登录用户 login_fail=登录失败 -password_is_incorrect=密码不正确 +password_is_incorrect=用户名或密码不正确 user_not_exist=用户不存在: user_has_been_disabled=用户已被禁用 excessive_attempts=操作频繁 diff --git a/backend/src/main/resources/i18n/messages_zh_TW.properties b/backend/src/main/resources/i18n/messages_zh_TW.properties index 5d5eff1963..7314bdecaa 100644 --- a/backend/src/main/resources/i18n/messages_zh_TW.properties +++ b/backend/src/main/resources/i18n/messages_zh_TW.properties @@ -20,7 +20,7 @@ password_modification_failed=舊密碼輸入錯誤,請重新輸入 cannot_delete_current_user=無法刪除當前登錄用戶 user_already_exists=該用戶已存在於當前成員列表中 cannot_remove_current=無法移除當前登錄用戶 -password_is_incorrect=密碼不正確 +password_is_incorrect=用戶名或密碼不正確 user_not_exist=用戶不存在: user_has_been_disabled=用戶已被禁用 excessive_attempts=操作頻繁