mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
添加重置密码时间
This commit is contained in:
@@ -43,7 +43,6 @@ public class ResetPwdEntity extends OrgCommonEntity {
|
||||
@Comment("过期时间")
|
||||
private LocalDateTime expireTime;
|
||||
|
||||
|
||||
|
||||
|
||||
@Comment("确认重置时间")
|
||||
private LocalDateTime confirmTime;
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user