Skip to content

Commit cf75dc4

Browse files
committed
CLAP-355 Fix: 매개변수 매핑 오류 수정
<footer> - #448
1 parent 39295c7 commit cf75dc4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private Member getMember(String inputNickname, String clientIp) {
7878

7979
private void validatePassword(String inputPassword, String encodedPassword, String inputNickname, String clientIp) {
8080
if (!passwordEncoder.matches(inputPassword, encodedPassword)) {
81-
loginAttemptService.recordFailedAttempt(clientIp, inputNickname);
81+
loginAttemptService.recordFailedAttempt(inputNickname, clientIp);
8282
throw new AuthException(AuthErrorCode.LOGIN_REQUEST_FAILED);
8383
}
8484
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class LoginAttemptService implements CheckAccountLockStatusUseCase {
2323
private static final long LOCK_TIME_DURATION = 30 * 60 * 1000; // 30분 (밀리초)
2424

2525
public void recordFailedAttempt(String nickname, String clientIp) {
26-
LoginLog loginLog = loadLoginLogPort.findByNickname(clientIp).orElse(null);
26+
LoginLog loginLog = loadLoginLogPort.findByNickname(nickname).orElse(null);
2727
if (loginLog == null) {
2828
loginLog = LoginLog.createLoginLog(nickname, clientIp);
2929
} else {

0 commit comments

Comments
 (0)