|
@@ -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);
|
|
|
|