From ae6a91a02b24d636224452ef746c9d27ea2ea073 Mon Sep 17 00:00:00 2001 From: j-yong99 Date: Sun, 7 Apr 2024 11:34:24 +0900 Subject: [PATCH] =?UTF-8?q?:sparkles:=20boolean=EA=B0=92=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC=20=EB=8C=80=EC=8B=A0=20String=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/moment/auth/dto/request/AuthRequest.java | 2 +- .../auth/src/main/java/com/moment/auth/service/AuthService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/moment/moment-server/auth/src/main/java/com/moment/auth/dto/request/AuthRequest.java b/backend/moment/moment-server/auth/src/main/java/com/moment/auth/dto/request/AuthRequest.java index 1973a50b71..2d55043556 100644 --- a/backend/moment/moment-server/auth/src/main/java/com/moment/auth/dto/request/AuthRequest.java +++ b/backend/moment/moment-server/auth/src/main/java/com/moment/auth/dto/request/AuthRequest.java @@ -25,7 +25,7 @@ public static class Login { @Setter public static class SendCode { private String email; - private boolean isSignUp; + private String isSignUp; } @Getter diff --git a/backend/moment/moment-server/auth/src/main/java/com/moment/auth/service/AuthService.java b/backend/moment/moment-server/auth/src/main/java/com/moment/auth/service/AuthService.java index df176b7cd5..9cf91a3d3c 100644 --- a/backend/moment/moment-server/auth/src/main/java/com/moment/auth/service/AuthService.java +++ b/backend/moment/moment-server/auth/src/main/java/com/moment/auth/service/AuthService.java @@ -39,7 +39,7 @@ public TokenResponseDTO.GetToken login(AuthRequest.Login login) { @Transactional public TokenResponseDTO.GetTempToken sendCode(AuthRequest.SendCode sendCode) { log.info("sendCode.isSignUp : {}", sendCode.isSignUp()); - if (sendCode.isSignUp()) { + if (sendCode.isSignUp().equals("true")) { if(userRepository.existsByEmail(sendCode.getEmail())){ throw new AlreadyRegisteredEmailException("이미 가입된 이메일"); }