refactor(CaptchaTokenGranter.java): 修改validateCode为code

This commit is contained in:
有来技术 2021-11-27 11:53:41 +08:00
parent 6a5555ec29
commit adf9f85083

View File

@ -50,7 +50,7 @@ public class CaptchaTokenGranter extends AbstractTokenGranter {
Map<String, String> 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), "验证码不能为空");