修复用户忘记密码bug

This commit is contained in:
TinyAnts 2022-11-17 15:42:26 +08:00
parent 41d372da5f
commit ef53643368
1 changed files with 1 additions and 2 deletions

View File

@ -392,8 +392,7 @@ public class LoginServiceImpl implements ILoginService {
} }
// 删除验证码 // 删除验证码
int noticeTpe = NoticeEnum.SMS_FORGOT_PASSWORD_CODE.getCode(); RedisUtil.del(GlobalConfig.redisSmsCode+typeCode+":"+mobile);
RedisUtil.del(GlobalConfig.redisSmsCode+noticeTpe+":"+mobile);
// 查询手机号 // 查询手机号
User user = userMapper.selectOne(new QueryWrapper<User>() User user = userMapper.selectOne(new QueryWrapper<User>()