feat: 학교 이메일 인증 기능 확장 및 설정 추가#27
Merged
Merged
Conversation
- SchoolEmailVerificationProperties에 인증 코드 만료, 쿨다운, 시도 제한 설정 추가 - FailureRecorder에 recordMismatch 메서드 추가 및 시도 제한 초과 시 만료 처리 로직 구현 - 이메일 인증 요청 시 재요청 쿨다운 및 만료된 코드 처리 로직 추가 - UserSchoolVerification에 만료 여부(isExpired) 확인 메서드 추가 - 인증 관련 엔티티, 서비스, 테스트 코드 보완 및 쿨다운 동작 검증 추가
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 887e685c87
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| variables = mapOf( | ||
| "code" to code, | ||
| "expiresInMinutes" to (verificationExpiresInSeconds / 60).toString(), | ||
| "expiresInMinutes" to (properties.codeExpirationSeconds / 60).toString(), |
There was a problem hiding this comment.
expiresInMinutes를 properties.codeExpirationSeconds / 60으로 내림 정수 나눗셈해 전달하고 있어, 설정값이 60의 배수가 아니면 사용자 안내가 실제 만료 시각과 어긋납니다(예: 59초→0분, 90초→1분). 이번 커밋으로 만료 시간이 설정값으로 바뀌었기 때문에 운영에서 값을 조정하면 바로 잘못된 안내가 노출될 수 있어요. 최소 1분 보장 + 올림(ceil) 또는 분/초 동시 표기로 계산식을 바꾸는 게 안전합니다.
Useful? React with 👍 / 👎.
- 인증 만료 시간을 분 단위로 올림해 표시하는 expirationMinutesForDisplay 메서드 추가 - SchoolEmailVerificationService에 새로운 만료 시간 처리 로직 반영 - 인증 메일 만료 시간 계산 테스트(requestWithExpirationMinuteCeiling) 추가 - API 문서에 인증 쿨다운 및 시도 제한 관련 섹션 추가 - DocsTest에 재요청 쿨다운 및 시도 제한 응답 문서화 테스트 추가 Refs: N/A
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.
📌 작업 개요
학교 이메일 인증 기능 확장 및 설정 추가
🔗 관련 이슈
✨ 변경 사항
🧪 테스트
✅ 체크리스트
feature/,fix/,hotfix/등)💬 리뷰어에게
@codex