From e030f9cafc322d20a4fac68b2982269e13919e5b Mon Sep 17 00:00:00 2001 From: 101 Date: Fri, 20 Sep 2024 11:35:03 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../whopper/application/auth/service/StudentLoginService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/repo/whopper/application/auth/service/StudentLoginService.java b/src/main/java/com/repo/whopper/application/auth/service/StudentLoginService.java index 2be58c88..ab263b00 100644 --- a/src/main/java/com/repo/whopper/application/auth/service/StudentLoginService.java +++ b/src/main/java/com/repo/whopper/application/auth/service/StudentLoginService.java @@ -38,7 +38,7 @@ class StudentLoginService implements StudentLoginUseCase { @Override @Transactional public TokenResponse studentLogin(LoginRequest request) { - return studentRepository.existsByAccountId(request.accountId()) + return studentRepository.existsByAccountId(request.accountId().trim()) ? loginExistingStudent(request) : registerAndLoginNewStudent(request); }