验证码调整

This commit is contained in:
MaxKey
2022-07-21 16:03:38 +08:00
parent 9a55b6b8d5
commit 3892b05718
11 changed files with 30 additions and 45 deletions

View File

@@ -78,8 +78,9 @@ public class NormalAuthenticationProvider extends AbstractAuthenticationProvider
if(this.applicationConfig.getLoginConfig().isCaptcha()) {
captchaValid(loginCredential.getState(),loginCredential.getCaptcha());
}
else if(inst.getCaptchaSupport().equalsIgnoreCase("YES")) {
}else if(!inst.getCaptcha().equalsIgnoreCase("NONE")) {
captchaValid(loginCredential.getState(),loginCredential.getCaptcha());
}