Skip to content

Commit

Permalink
✨ 기능 추가 : resetPassword 비밀번호 재설정 Controller 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sksmsdlskgus committed Nov 28, 2024
1 parent 2262716 commit 6cedc3d
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,16 @@ public ResponseEmailDTO<?> verifyEmail(@RequestBody @Validated EmailVerification
}
}

// 다음버튼 누를 시, 인증성공하면 ? -> 비번 재설정 칸 생성 -> 완료 버튼
@Operation(summary = "비밀번호 재설정")
@PostMapping("/password")
public ResponseEntity<String> resetPassword(@RequestBody RequestResetPasswordVO request) {
log.info("POST /admin/password 요청 도착: email={}", request.getUserEmail());
log.info("POST /admin/password 요청 도착: email={}", request.getUserPassword());

adminService.resetPassword(request);

log.info("비밀번호가 성공적으로 재설정되었습니다.");
return ResponseEntity.ok("비밀번호가 성공적으로 재설정되었습니다.");
}
}

0 comments on commit 6cedc3d

Please sign in to comment.