Skip to content

Commit

Permalink
✨ 기능 추가 : logging 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sksmsdlskgus committed Nov 28, 2024
1 parent 6cedc3d commit 71d783a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ public ResponseEntity<?> logout(HttpServletResponse response) {
@PostMapping("/verification-email/password")
public ResponseEmailDTO<?> sendVerificationEmailPassword(@RequestBody @Validated AdminEmailVerificationVO request) {

log.info("POST /admin/verification-email/password 요청 도착: request={}", request);

// 입력한 사번 코드와 이메일의 정보 검증
AdminDTO adminByEmail = adminService.findUserByEmail(request.getEmail());

Expand Down Expand Up @@ -121,6 +123,8 @@ private ResponseEmailDTO<?> getResponseEmailDTO(AdminEmailVerificationVO request
@Operation(summary = "비번 재설정 전 이메일 인증번호 검증")
@PostMapping("/verification-email/confirmation")
public ResponseEmailDTO<?> verifyEmail(@RequestBody @Validated EmailVerificationVO request) {
log.info("POST /admin/verification-email/confirmation 요청 도착: request={}", request);

boolean isVerified = emailService.verifyCode(request.getEmail(), request.getCode());

ResponseEmailMessageVO responseEmailMessageVO =new ResponseEmailMessageVO();
Expand All @@ -136,8 +140,7 @@ 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());
log.info("POST /admin/password 요청 도착: request={}", request);

adminService.resetPassword(request);

Expand Down

0 comments on commit 71d783a

Please sign in to comment.