|
@@ -58,7 +58,7 @@ public class SysLoginService {
|
|
|
throw new BaseException("用户/密码必须填写");
|
|
|
}
|
|
|
|
|
|
- // 密码如果不在指定范围内 错误
|
|
|
+/* // 密码如果不在指定范围内 错误
|
|
|
if (password.length() < UserConstants.PASSWORD_MIN_LENGTH || password.length() > UserConstants.PASSWORD_MAX_LENGTH) {
|
|
|
remoteLogService.saveLogininfor(username, Constants.LOGIN_FAIL, "用户密码不在指定范围");
|
|
|
throw new BaseException("用户密码不在指定范围");
|
|
@@ -68,7 +68,7 @@ public class SysLoginService {
|
|
|
if (username.length() < UserConstants.USERNAME_MIN_LENGTH || username.length() > UserConstants.USERNAME_MAX_LENGTH) {
|
|
|
remoteLogService.saveLogininfor(username, Constants.LOGIN_FAIL, "用户名不在指定范围");
|
|
|
throw new BaseException("用户名不在指定范围");
|
|
|
- }
|
|
|
+ }*/
|
|
|
// 查询用户信息
|
|
|
R<LoginUser> userResult = remoteUserService.getUserInfo(username);
|
|
|
|
|
@@ -122,10 +122,6 @@ public class SysLoginService {
|
|
|
if(redisService.getCacheObject(form.getUuid()) == null){
|
|
|
throw new BaseException("登录超时,请重新登录");
|
|
|
}
|
|
|
- String cacheObject = redisService.getCacheObject(form.getUuid()).toString();
|
|
|
- if (StringUtils.isBlank(cacheObject)) {
|
|
|
- throw new BaseException("登录超时,请重新登录");
|
|
|
- }
|
|
|
String phone = form.getPhone();
|
|
|
if (StringUtils.isBlank(phone)) {
|
|
|
throw new BaseException("缺少参数,手机号码");
|