update 优化 验证码校验逻辑

This commit is contained in:
疯狂的狮子Li 2025-08-15 16:30:33 +08:00
parent 643fead8f4
commit 0ed79627b6

View File

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