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 6fc4f95698..337e282eb6 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("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(); }