|
@@ -190,7 +190,7 @@ public class AppUserService extends ServiceImpl<AppUserMapper, AppUser> implemen
|
|
|
if(!phoneSmsCode)return AjaxJson.getError("验证码发送失败!");
|
|
|
//从缓存中获取验证码
|
|
|
String smsCode = RedisUtil.get(forgetPasswordDto.getPhone());
|
|
|
- if(smsCode == null)return AjaxJson.getError("验证码发送失败!");
|
|
|
+ if(smsCode == null)return AjaxJson.getError("验证码已过期!");
|
|
|
//比对用户输入的验证码
|
|
|
boolean result = smsCode.equals(forgetPasswordDto.getSmsCode());
|
|
|
//进行验证码校验完成后的流程
|
|
@@ -208,7 +208,9 @@ public class AppUserService extends ServiceImpl<AppUserMapper, AppUser> implemen
|
|
|
if(i != 1)return AjaxJson.getError("密码重置失败!");
|
|
|
return AjaxJson.getSuccess("密码找回成功!");
|
|
|
}else {
|
|
|
+
|
|
|
return AjaxJson.getError("两次密码校验不匹配,请重新尝试!");
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|