v1.0.3
This commit is contained in:
@@ -200,10 +200,10 @@ public class CaptchaManager {
|
||||
String cacheKey = CACHE_KEY.formatted(uniqueId);
|
||||
String cacheValue = redisCaptcha.get(cacheKey);
|
||||
if (TimiJava.isEmpty(cacheValue)) {
|
||||
throw new TimiException(TimiCode.ARG_EXPIRED).msgKey("captcha.expire");
|
||||
throw new TimiException(TimiCode.ARG_EXPIRED, "captcha.expire");
|
||||
}
|
||||
if (!value.trim().equalsIgnoreCase(cacheValue)) {
|
||||
throw new TimiException(TimiCode.RESULT_BAD).msgKey("captcha.error");
|
||||
throw new TimiException(TimiCode.RESULT_BAD, "captcha.error");
|
||||
}
|
||||
// 清除缓存
|
||||
redisCaptcha.destroy(cacheKey);
|
||||
|
||||
Reference in New Issue
Block a user