From 103c6cf7a45a64ff34f83c21bedf5a00ec3af92a Mon Sep 17 00:00:00 2001 From: parkjaehak Date: Sat, 1 Feb 2025 10:28:44 +0900 Subject: [PATCH] =?UTF-8?q?CLAP-196=20Fix:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8?= =?UTF-8?q?=20=EC=8B=9C=EB=8F=84=20=ED=9A=9F=EC=88=98=20=EA=B2=80=EC=A6=9D?= =?UTF-8?q?=20=EC=8B=9C=20=EC=8B=9C=EA=B0=84=20=EB=8B=A8=EC=9C=84=20?= =?UTF-8?q?=EB=B6=88=EC=9D=BC=EC=B9=98=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/application/service/auth/LoginAttemptService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/clap/server/application/service/auth/LoginAttemptService.java b/src/main/java/clap/server/application/service/auth/LoginAttemptService.java index 50afc6ea..61c628e6 100644 --- a/src/main/java/clap/server/application/service/auth/LoginAttemptService.java +++ b/src/main/java/clap/server/application/service/auth/LoginAttemptService.java @@ -47,8 +47,8 @@ public void checkAccountIsLocked(String sessionId) { LocalDateTime now = LocalDateTime.now(); long minutesSinceLastAttempt = ChronoUnit.MINUTES.between(lastAttemptAt, now); - - if (minutesSinceLastAttempt <= LOCK_TIME_DURATION) { + long minutesSinceLastAttemptInMillis = minutesSinceLastAttempt * 60 * 1000; + if (minutesSinceLastAttemptInMillis <= LOCK_TIME_DURATION) { throw new AuthException(AuthErrorCode.ACCOUNT_IS_LOCKED); } }