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("이미 가입된 이메일"); }