From 44152ef2962df1f0789f4c7db6665f3c6d9ac4e9 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Thu, 21 Jan 2021 15:15:41 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=94=A8=E6=88=B7=E5=90=8D?= =?UTF-8?q?=E6=88=96=E5=AF=86=E7=A0=81=E9=94=99=E8=AF=AF=E7=9A=84=E6=97=B6?= =?UTF-8?q?=E5=80=99=E6=98=BE=E7=A4=BA=E4=BF=A1=E6=81=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/metersphere/security/realm/ShiroDBRealm.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }