提交 a5f5afd4 编写于 作者: 郝先瑞

refactor: 验证码redis的key前缀重命名

上级 8eb1c687
......@@ -53,7 +53,7 @@ public class CaptchaTokenGranter extends AbstractTokenGranter {
String uuid = parameters.get("uuid");
Assert.isTrue(StrUtil.isNotBlank(validateCode), "验证码不能为空");
String validateCodeKey = SecurityConstants.VALIDATE_CODE_PREFIX + uuid;
String validateCodeKey = SecurityConstants.VALIDATION_CODE_KEY_PREFIX + uuid;
// 从缓存取出正确的验证码和用户输入的验证码比对
String correctValidateCode = redisTemplate.opsForValue().get(validateCodeKey);
......
......@@ -68,7 +68,7 @@ public interface SecurityConstants {
/**
* 验证码key前缀
*/
String VALIDATE_CODE_PREFIX = "VALIDATE_CODE:";
String VALIDATION_CODE_KEY_PREFIX = "CAPTCHA:";
/**
* 短信验证码key前缀
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册