|
|
|
@ -53,6 +53,8 @@ public class CaptchaTokenGranter extends AbstractTokenGranter {
|
|
|
|
|
// 判断验证码
|
|
|
|
|
if (code == null || !StringUtil.equalsIgnoreCase(redisCode, code)) { |
|
|
|
|
throw new UserDeniedAuthorizationException(TokenUtil.CAPTCHA_NOT_CORRECT); |
|
|
|
|
} else { |
|
|
|
|
bladeRedis.del(CacheNames.CAPTCHA_KEY + key); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Map<String, String> parameters = new LinkedHashMap<String, String>(tokenRequest.getRequestParameters()); |
|
|
|
|