Skip to content

Commit

Permalink
feat: 문자인증 재전송 제한 정책 조건 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
swa07016 committed Mar 15, 2024
1 parent 8d6d319 commit 3d2e19d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public VerificationMessage sendCode(Long userId, UserRequest.SendCodeDTO request
Duration duration = Duration.between(updatedAt, now);

// 4, 7, 10, ...
boolean isWaitingCount = (verificationMessage.getRequestCount() % 3 == 1) && verificationMessage.getRequestCount() != 1;
boolean isWaitingCount = (verificationMessage.getRequestCount() % 3 == 0) && verificationMessage.getRequestCount() != 0;
// 차이가 5분 이내인지 확인
if(isWaitingCount && duration.toMinutes() < 5) {
// 에러 응답 로직
Expand Down

0 comments on commit 3d2e19d

Please sign in to comment.