|
|
@@ -332,6 +332,9 @@ public class AuthorizationController {
|
|
|
if (StrUtil.isEmpty(code)) {
|
|
|
throw BusinessRuntimeException.getInstance("邮箱验证码已失效,请重新获取");
|
|
|
}
|
|
|
+ if (!StrUtil.equals(loginPhoneReq.getCode(), code)) {
|
|
|
+ throw BusinessRuntimeException.getInstance("邮箱验证码错误,请重新输入");
|
|
|
+ }
|
|
|
wrapper.eq(User::getEmail, loginPhoneReq.getEmail());
|
|
|
redisService.del(RedisService.key.EMAIL_CODE_KEY.getNameFormat(loginPhoneReq.getEmail()));
|
|
|
}else {
|