Skip to content

Commit

Permalink
[REFACTOR] 이메일 인증 validation 수정(#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
eunsol-an committed Oct 3, 2024
1 parent 9100665 commit 1f30d6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/nextroom/nextRoomServer/dto/MailDto.java
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -16,6 +16,7 @@ public class MailDto {
@NoArgsConstructor(force = true)
public static class SendRequestDto {
@NotNull(message = "이메일을 입력해 주세요.")
@NotBlank(message = "이메일을 입력해 주세요.")
@Email(message = "이메일 형식이 올바르지 않습니다.")
private String email;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 1f30d6c

Please sign in to comment.