缓存验证码过期异常问题

This commit is contained in:
shimingxy 2025-07-22 16:52:09 +08:00
parent fb38281786
commit 3e8dba2f00

View File

@ -126,7 +126,7 @@ public class AuthTokenService extends AuthJwtService{
if(StringUtils.isNotBlank(jwtId) &&StringUtils.isNotBlank(captcha)) {
Object momentaryCaptcha = momentaryService.get("", jwtId);
_logger.debug("captcha : {}, momentary Captcha : {}" ,captcha, momentaryCaptcha);
if (!StringUtils.isBlank(captcha) && captcha.equals(momentaryCaptcha.toString())) {
if (!StringUtils.isBlank(captcha) &&momentaryCaptcha != null && captcha.equals(momentaryCaptcha.toString())) {
momentaryService.remove("", jwtId);
return true;
}