diff --git a/src/main/java/com/nextroom/nextRoomServer/dto/MailDto.java b/src/main/java/com/nextroom/nextRoomServer/dto/MailDto.java index e7fce99..2a070c5 100644 --- a/src/main/java/com/nextroom/nextRoomServer/dto/MailDto.java +++ b/src/main/java/com/nextroom/nextRoomServer/dto/MailDto.java @@ -1,7 +1,7 @@ package com.nextroom.nextRoomServer.dto; import jakarta.validation.constraints.Email; -import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Size; import lombok.AllArgsConstructor; import lombok.Builder; @@ -16,6 +16,7 @@ public class MailDto { @NoArgsConstructor(force = true) public static class SendRequestDto { @NotNull(message = "이메일을 입력해 주세요.") + @NotBlank(message = "이메일을 입력해 주세요.") @Email(message = "이메일 형식이 올바르지 않습니다.") private String email; } @@ -26,8 +27,10 @@ public static class SendRequestDto { @NoArgsConstructor(force = true) public static class VerifyRequestDto { @NotNull(message = "이메일을 입력해 주세요.") + @NotBlank(message = "이메일을 입력해 주세요.") @Email(message = "이메일 형식이 올바르지 않습니다.") private String email; + @NotBlank(message = "인증 코드를 입력해 주세요.") @Size(max = 6, min = 6, message = "인증 코드는 6자리 입니다.") private String code; }