!743 update 注册功能同步优化 验证码校验逻辑

* update 注册功能同步优化 验证码校验逻辑
This commit is contained in:
DoubleH 2025-08-15 08:29:49 +00:00 committed by 疯狂的狮子Li
parent e24e2c51e4
commit 0f0a3a181e

View File

@ -87,7 +87,7 @@ public class SysRegisterService {
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();
}