add 发送短信验证码回显
This commit is contained in:
+2
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -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("用户不存在");
|
||||
|
||||
Reference in New Issue
Block a user