diff --git a/youlai-auth/src/main/java/com/youlai/auth/security/extension/captcha/CaptchaTokenGranter.java b/youlai-auth/src/main/java/com/youlai/auth/security/extension/captcha/CaptchaTokenGranter.java index 56c63d63e..1123f23b9 100644 --- a/youlai-auth/src/main/java/com/youlai/auth/security/extension/captcha/CaptchaTokenGranter.java +++ b/youlai-auth/src/main/java/com/youlai/auth/security/extension/captcha/CaptchaTokenGranter.java @@ -50,7 +50,7 @@ public class CaptchaTokenGranter extends AbstractTokenGranter { Map parameters = new LinkedHashMap(tokenRequest.getRequestParameters()); // 验证码校验逻辑 - String validateCode = parameters.get("validateCode"); + String validateCode = parameters.get("code"); String uuid = parameters.get("uuid"); Assert.isTrue(StrUtil.isNotBlank(validateCode), "验证码不能为空");