ccj há 2 anos atrás
pai
commit
38aa9beae3

+ 9 - 9
winsea-haixin-platform-backend/src/main/java/com/yh/saas/platform/controller/LoginController.java

@@ -39,15 +39,15 @@ public class LoginController {
         String password = user.getLoginPassword();
         // 获取IP
         String keyStr = getIpRequest(request);
-        if(redisTemplate.hasKey(keyStr)) {
-            // 登录时候先判断是否有登录错误的计数
-            if (redisTemplate.opsForValue().get(keyStr) != null){
-                int errorNum = Integer.valueOf((String) redisTemplate.opsForValue().get(keyStr));
-                if(errorNum==5){
-                    throw new YException(YExceptionEnum.CONG_TERM_OF_VADMIN);
-                }
-            }
-        }
+//        if(redisTemplate.hasKey(keyStr)) {
+//            // 登录时候先判断是否有登录错误的计数
+//            if (redisTemplate.opsForValue().get(keyStr) != null){
+//                int errorNum = Integer.valueOf((String) redisTemplate.opsForValue().get(keyStr));
+//                if(errorNum==5){
+//                    throw new YException(YExceptionEnum.CONG_TERM_OF_VADMIN);
+//                }
+//            }
+//        }
         Account u = this.getTargetUser(user);
         if(!checkPassWord(password, u.getLoginPassword())) {