RuoYi před 1 rokem
rodič
revize
60618c1da9

+ 1 - 7
ruoyi-auth/src/main/java/com/ruoyi/auth/service/SysLoginService.java

@@ -74,17 +74,11 @@ public class SysLoginService
74 74
         // 查询用户信息
75 75
         R<LoginUser> userResult = remoteUserService.getUserInfo(username, SecurityConstants.INNER);
76 76
 
77
-        if (StringUtils.isNull(userResult) || StringUtils.isNull(userResult.getData()))
78
-        {
79
-            recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, "登录用户不存在");
80
-            throw new ServiceException("登录用户:" + username + " 不存在");
81
-        }
82
-
83 77
         if (R.FAIL == userResult.getCode())
84 78
         {
85 79
             throw new ServiceException(userResult.getMsg());
86 80
         }
87
-        
81
+
88 82
         LoginUser userInfo = userResult.getData();
89 83
         SysUser user = userResult.getData().getSysUser();
90 84
         if (UserStatus.DELETED.getCode().equals(user.getDelFlag()))