Prechádzať zdrojové kódy

Fix forgot password

tsurumure 4 mesiacov pred
rodič
commit
6e4b8facdd

+ 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("短信验证码错误");