【7.2.3】演示环境不记录error次数

pull/30/head
fengshuonan 2022-05-31 14:33:08 +08:00
parent 64f9d6d956
commit 2223bcdbca
1 changed files with 6 additions and 1 deletions

View File

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