he2802 пре 2 година
родитељ
комит
94ec3cd466

+ 2 - 2
zhongzheng-framework/src/main/java/com/zhongzheng/framework/web/service/UserServiceImpl.java

@@ -1134,7 +1134,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
         if(Validator.isEmpty(bo.getAccount())){
             throw new CustomException("账号不能为空");
         }
-       /* String dualAuth = configService.selectConfigByKey("login.dual.auth");
+        String dualAuth = configService.selectConfigByKey("login.dual.auth");
         if(Validator.isNotEmpty(dualAuth)&&dualAuth.equals("1")){
             String key = Constants.LOGIN_SMS + bo.getTel();
             String code =  redisCache.getCacheObject(key);
@@ -1145,7 +1145,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
                 iUserLoginErrorService.saveErrorLog(bo.getTel());
                 throw new CustomException("验证码错误");
             }
-        }*/
+        }
         iUserLoginErrorService.checkLimit(bo.getAccount());
         LambdaQueryWrapper<User> queryWrapper =new LambdaQueryWrapper<User>();
         queryWrapper.and(wq -> wq