diff --git a/src/main/java/com/github/winkathon/lingo/domain/auth/dto/request/RegisterRequest.java b/src/main/java/com/github/winkathon/lingo/domain/auth/dto/request/RegisterRequest.java index 01f92b8..16cb326 100644 --- a/src/main/java/com/github/winkathon/lingo/domain/auth/dto/request/RegisterRequest.java +++ b/src/main/java/com/github/winkathon/lingo/domain/auth/dto/request/RegisterRequest.java @@ -2,6 +2,7 @@ import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Pattern; +import jakarta.validation.constraints.Size; import lombok.Builder; @Builder @@ -12,11 +13,11 @@ public record RegisterRequest( String name, @NotBlank - @Pattern(regexp = "^[a-zA-Z0-9]{4,12}$") + @Size(min = 4, max = 128) String id, @NotBlank - @Pattern(regexp = "^(?=.*[a-zA-Z])(?=.*\\d)(?=.*[@$!%*?&#.~_-])[A-Za-z\\d@$!%*?&#.~_-]{8,}$") + @Size(min = 4, max = 128) String password ) { }