Repository navigation
이메일 인증 결과를 JSON 대신 HTML 문구로 응답 - #64
Merged
Merged
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe email verification endpoint now returns HTML pages. It reports successful verification and maps expired or invalid tokens to HTTP 400 responses with user-facing messages. ChangesEmail verification response
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
1 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 관련 이슈
🔎 What is this PR?
회원가입 시 발송되는 이메일 인증 메일의 안내 문구 및 인증 링크 처리 방식을 개선
✨ Changes
AuthMailService.sendVerificationEmailGET /auth/verify-email?token=...형태의 API 명세 표기와 원시 토큰 값을 메일 본문에 그대로 노출app.base-url설정값을 조합해 실제 클릭 가능한 전체 URL(https://dev.daytodo.cloud/auth/verify-email?token=...)로 안내하도록 수정application.yml에app.base-url프로퍼티(APP_BASE_URL환경변수, 기본값 dev 도메인) 추가AuthController.verifyEmailAuthResponse.EmailVerifiedJSON을 그대로 반환해, 메일 링크 클릭 시 브라우저에 JSON이 노출됨INVALID_VERIFICATION_TOKEN,EXPIRED_VERIFICATION_TOKEN등 에러 케이스별 문구 분기 처리)AuthService.verifyEmail을 비롯한 서비스 로직은 변경 없음📷 Result
💬 To. Reviewer
verifyEmail엔드포인트만 예외적으로 JSON이 아닌 HTML을 반환하도록 바꿨는데, 이 방식이 괜찮은지 확인 부탁드려요.✅ 체크 리스트
Summary by CodeRabbit