添加重置密码时间

This commit is contained in:
2023-11-23 22:36:58 +08:00
parent 333a1b4a37
commit 8f711031bb
2 changed files with 5 additions and 3 deletions

View File

@@ -43,7 +43,6 @@ public class ResetPwdEntity extends OrgCommonEntity {
@Comment("过期时间")
private LocalDateTime expireTime;
@Comment("确认重置时间")
private LocalDateTime confirmTime;
}

View File

@@ -161,6 +161,9 @@ public class ResetPwdService extends BaseService<ResetPwdEntity, ResetPwdReposit
throw new BizException("验证码不正确");
}
resetPwdEntity.setConfirmTime(LocalDateTime.now());
this.repository.save(resetPwdEntity);
userService.resetPwd(resetPwdEntity.getUser().getId(), dto.getPassword());