From e0483c9518c6e4310c713c8dcedf952105c4e307 Mon Sep 17 00:00:00 2001 From: wangxy <1481820854@qq.com> Date: Mon, 18 Nov 2024 16:35:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=AF=86=E5=93=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/framework/shiro/service/SysLoginService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/shiro/service/SysLoginService.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/shiro/service/SysLoginService.java index 399bdc0..750524b 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/shiro/service/SysLoginService.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/shiro/service/SysLoginService.java @@ -116,7 +116,7 @@ public class SysLoginService /** * 用户审核状态检测 */ - if (ExamineState.DISABLE.getCode().equals(user.getExamine()) || ExamineState.DEFAULT.getCode().equals(user.getExamine())) + if (!ExamineState.ENABLE.getCode().equals(user.getExamine())) { AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.examine.disabled"))); throw new UserDisableException();