Browse Source

chore[litemall-admin-api]: 后端认证失败,不返回具体内部信息。

Junling Bu 6 years ago
parent
commit
795ba9e75f

+ 1 - 1
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminAuthController.java

@@ -61,7 +61,7 @@ public class AdminAuthController {
             return ResponseUtil.fail(ADMIN_INVALID_ACCOUNT, "用户帐号已锁定不可用");
 
         } catch (AuthenticationException ae) {
-            return ResponseUtil.fail(ADMIN_INVALID_ACCOUNT, ae.getMessage());
+            return ResponseUtil.fail(ADMIN_INVALID_ACCOUNT, "认证失败");
         }
         return ResponseUtil.ok(currentUser.getSession().getId());
     }