[feat] 비밀번호 재설정 로직 변경 #89
Merged
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.
작업
새로운 API 플로우
POST /auth/password/reset/confirm-email
Request: { "email": "[email protected]" }
Response: { "success": true, "message": "인증 코드가 이메일로 발송되었습니다." }
→ 이메일로 6자리 코드 발송
POST /auth/password/reset/verify-code
Request: { "email": "[email protected]", "code": "985986" }
Response: { "success": true, "message": "인증이 완료되었습니다.", "token": "uuid..." }
→ 5회 시도 제한, 성공 시 토큰 반환
POST /auth/password/reset
Request: { "token": "uuid...", "newPassword": "...", "checkPassword": "..." }
Response: { "success": true, "message": "비밀번호가 성공적으로 재설정되었습니다." }