|
|
|
|
@ -98,7 +98,7 @@ public class PasswordAuthStrategy implements IAuthStrategy {
|
|
|
|
|
loginService.recordLogininfor(tenantId, username, Constants.LOGIN_FAIL, MessageUtils.message("user.jcaptcha.expire"));
|
|
|
|
|
throw new CaptchaExpireException();
|
|
|
|
|
}
|
|
|
|
|
if (!code.equalsIgnoreCase(captcha)) {
|
|
|
|
|
if (!StringUtils.equalsIgnoreCase(code, captcha)) {
|
|
|
|
|
loginService.recordLogininfor(tenantId, username, Constants.LOGIN_FAIL, MessageUtils.message("user.jcaptcha.error"));
|
|
|
|
|
throw new CaptchaException();
|
|
|
|
|
}
|
|
|
|
|
|