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

This commit is contained in:
Junling Bu
2019-03-20 10:44:17 +08:00
parent 2e2cb601d6
commit 795ba9e75f

View File

@@ -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());
}