浏览代码

Fix forgot password

tsurumure 4 月之前
父节点
当前提交
6e4b8facdd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/backendsys/modules/system/service/impl/SysAuthServiceImpl.java

+ 1 - 1
src/main/java/com/backendsys/modules/system/service/impl/SysAuthServiceImpl.java

@@ -385,7 +385,7 @@ public class SysAuthServiceImpl implements SysAuthService {
         Integer phoneValidCode = sysUserDTO.getPhone_valid_code();
 
         // 判断短信验证码是否正确
-        String redisKey = "sms-forgotPassword-" + sysUserDTO.getPhone();
+        String redisKey = APPLICATION_NAME + "-sms-forgotPassword-" + sysUserDTO.getPhone();
         Integer smsCode = redisUtil.getCacheObject(redisKey);
         if ("false".equals(SMS_DEBUG) && (smsCode == null || !smsCode.equals(phoneValidCode))) {
             throw new CustException("短信验证码错误");