mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-07-19 06:09:33 +08:00
fixed: 图形验证码校验的大写无效bug
This commit is contained in:
parent
3ff3973d6c
commit
78386a289e
@ -81,7 +81,7 @@ public class ImageCaptchaServiceImpl implements ImageCaptchaService {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
String cacheValue = (String) queryResult;
|
String cacheValue = (String) queryResult;
|
||||||
boolean verifyResult = cacheValue.equals(code);
|
boolean verifyResult = cacheValue.equalsIgnoreCase(code);
|
||||||
|
|
||||||
if (verifyResult) { // 验证成功删除缓存->防止多次使用
|
if (verifyResult) { // 验证成功删除缓存->防止多次使用
|
||||||
RedisUtil.del(cacheKey);
|
RedisUtil.del(cacheKey);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user