fixed: 图形验证码校验的大写无效bug

This commit is contained in:
none 2023-04-23 09:31:04 +08:00
parent 3ff3973d6c
commit 78386a289e

View File

@ -81,7 +81,7 @@ public class ImageCaptchaServiceImpl implements ImageCaptchaService {
return false;
}
String cacheValue = (String) queryResult;
boolean verifyResult = cacheValue.equals(code);
boolean verifyResult = cacheValue.equalsIgnoreCase(code);
if (verifyResult) { // 验证成功删除缓存->防止多次使用
RedisUtil.del(cacheKey);