mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-06-29 00:36:28 +08:00
fixed: 图形验证码校验的大写无效bug
This commit is contained in:
parent
3ff3973d6c
commit
78386a289e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user