mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-10 08:57:14 +08:00
refactor: 将验证码唯一标识格式从无符号 UUID 调整为带符号 UUID
This commit is contained in:
@@ -75,7 +75,7 @@ public class CaptchaController {
|
||||
Captcha captcha = captchaImage.getCaptcha();
|
||||
|
||||
// 保存验证码
|
||||
String uuid = IdUtil.fastSimpleUUID();
|
||||
String uuid = IdUtil.fastUUID();
|
||||
String captchaKey = RedisUtils.formatKey(CacheConsts.CAPTCHA_KEY_PREFIX, uuid);
|
||||
RedisUtils.setCacheObject(captchaKey, captcha.text(),
|
||||
Duration.ofMinutes(captchaImage.getExpirationInMinutes()));
|
||||
|
Reference in New Issue
Block a user