mirror of https://gitee.com/stylefeng/roses
【7.2.3】演示环境不记录error次数
parent
64f9d6d956
commit
2223bcdbca
|
@ -476,7 +476,12 @@ public class AuthServiceImpl implements AuthServiceApi {
|
|||
if (loginErrorCount == null) {
|
||||
loginErrorCount = 0;
|
||||
}
|
||||
|
||||
// 演示环境,不记录error次数
|
||||
if (!DemoConfigExpander.getDemoEnvFlag()) {
|
||||
loginErrorCountCacheApi.put(loginRequest.getAccount(), loginErrorCount + 1);
|
||||
}
|
||||
|
||||
throw new AuthException(AuthExceptionEnum.USERNAME_PASSWORD_ERROR);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue