mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-23 05:00:25 +08:00
refactor(CaptchaTokenGranter.java): 修改validateCode为code
This commit is contained in:
parent
6a5555ec29
commit
adf9f85083
@ -50,7 +50,7 @@ public class CaptchaTokenGranter extends AbstractTokenGranter {
|
|||||||
Map<String, String> parameters = new LinkedHashMap(tokenRequest.getRequestParameters());
|
Map<String, String> parameters = new LinkedHashMap(tokenRequest.getRequestParameters());
|
||||||
|
|
||||||
// 验证码校验逻辑
|
// 验证码校验逻辑
|
||||||
String validateCode = parameters.get("validateCode");
|
String validateCode = parameters.get("code");
|
||||||
String uuid = parameters.get("uuid");
|
String uuid = parameters.get("uuid");
|
||||||
|
|
||||||
Assert.isTrue(StrUtil.isNotBlank(validateCode), "验证码不能为空");
|
Assert.isTrue(StrUtil.isNotBlank(validateCode), "验证码不能为空");
|
||||||
|
Loading…
Reference in New Issue
Block a user