mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-10-26 22:51:36 +08:00
fixed: 图形验证码校验的大写无效bug
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user