|
@@ -1133,7 +1133,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);
|
|
@@ -1144,7 +1144,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
|