parent
85486d12f7
commit
beb9b0ee82
@ -189,8 +189,8 @@ public class UserController {
|
|||||||
if(!passwordEncoder.matches(password, user.getPassword())){
|
if(!passwordEncoder.matches(password, user.getPassword())){
|
||||||
throw new BadRequestException("密码错误");
|
throw new BadRequestException("密码错误");
|
||||||
}
|
}
|
||||||
verificationCodeService.validated(CodeEnum.EMAIL_RESET_EMAIL_CODE.getKey() + user.getEmail(), code);
|
verificationCodeService.validated(CodeEnum.EMAIL_RESET_EMAIL_CODE.getKey() + resources.getEmail(), code);
|
||||||
userService.updateEmail(user.getUsername(),user.getEmail());
|
userService.updateEmail(user.getUsername(),resources.getEmail());
|
||||||
return new ResponseEntity<>(HttpStatus.OK);
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user