|
@@ -135,11 +135,6 @@ public class AuthServiceImpl implements AuthService {
|
|
if (stuClientLoginLimit) {
|
|
if (stuClientLoginLimit) {
|
|
throw new StatusException("003505", "系统维护中... ...");
|
|
throw new StatusException("003505", "系统维护中... ...");
|
|
}
|
|
}
|
|
- } else if (AccountType.COMMON_LOGIN_NAME.equals(accountTypeEnum)) {
|
|
|
|
- Boolean commonLoginLimit = (Boolean) systemPropertyService.get("COMMON_LOGIN_LIMIT");
|
|
|
|
- if (commonLoginLimit) {
|
|
|
|
- throw new StatusException("003506", "系统维护中... ...");
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
Integer errorTimes = getLoginErrorTimes(accountTypeEnum, accountValue, clientIp);
|
|
Integer errorTimes = getLoginErrorTimes(accountTypeEnum, accountValue, clientIp);
|
|
@@ -227,6 +222,14 @@ public class AuthServiceImpl implements AuthService {
|
|
throw new StatusException("003003", "账号或密码错误");
|
|
throw new StatusException("003003", "账号或密码错误");
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
|
|
+ // 系统级别登陆限制
|
|
|
|
+ if (AccountType.COMMON_LOGIN_NAME.equals(accountTypeEnum)) {
|
|
|
|
+ Boolean commonLoginLimit = (Boolean) systemPropertyService
|
|
|
|
+ .get("COMMON_LOGIN_LIMIT");
|
|
|
|
+ if (commonLoginLimit) {
|
|
|
|
+ throw new StatusException("003506", "系统维护中... ...");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
if (!password.equals(userEntity.getPassword())) {
|
|
if (!password.equals(userEntity.getPassword())) {
|
|
whenLoginError(accountTypeEnum, accountValue, clientIp);
|
|
whenLoginError(accountTypeEnum, accountValue, clientIp);
|
|
throw new StatusException("003003", "账号或密码错误");
|
|
throw new StatusException("003003", "账号或密码错误");
|