add 发送短信验证码回显

This commit is contained in:
lijiarao
2021-09-24 10:31:15 +08:00
parent 5683f6a54c
commit f43f03195c
4 changed files with 11 additions and 7 deletions
@@ -611,6 +611,7 @@ public class LoginController {
throw new JeroBootException("手机号不存在");
}
sysBaseAPI.sendVerificationCode(phone,"2",null,null);
return Result.OK();
String string = redisUtil.get("_verification:_phone:" + PasswordUtil.decrypt(phone)).toString();
return Result.OK(string);
}
}
@@ -507,7 +507,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
throw new JeroBootException("新密码和确认密码不一致,请重新输入");
}
LambdaQueryWrapper<SysUser> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(SysUser::getPhone, phone);
queryWrapper.eq(SysUser::getPhone, PasswordUtil.encrypt(phone));
SysUser sysUser = this.getOne(queryWrapper);
if (ObjectUtils.isEmpty(sysUser)) {
throw new JeroBootException("用户不存在");