Skip to content

Commit 103c6cf

Browse files
committed
CLAP-196 Fix: 로그인 시도 횟수 검증 시 시간 단위 불일치 해결
1 parent 36f3829 commit 103c6cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/clap/server/application/service/auth/LoginAttemptService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ public void checkAccountIsLocked(String sessionId) {
4747
LocalDateTime now = LocalDateTime.now();
4848

4949
long minutesSinceLastAttempt = ChronoUnit.MINUTES.between(lastAttemptAt, now);
50-
51-
if (minutesSinceLastAttempt <= LOCK_TIME_DURATION) {
50+
long minutesSinceLastAttemptInMillis = minutesSinceLastAttempt * 60 * 1000;
51+
if (minutesSinceLastAttemptInMillis <= LOCK_TIME_DURATION) {
5252
throw new AuthException(AuthErrorCode.ACCOUNT_IS_LOCKED);
5353
}
5454
}

0 commit comments

Comments
 (0)