Skip to content

Commit

Permalink
✨ boolean값 처리 대신 String으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Yong99 committed Apr 7, 2024
1 parent e371508 commit ae6a91a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static class Login {
@Setter
public static class SendCode {
private String email;
private boolean isSignUp;
private String isSignUp;
}

@Getter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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("이미 가입된 이메일");
}
Expand Down

0 comments on commit ae6a91a

Please sign in to comment.