Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/Winkathon-Tripee/Backend
Browse files Browse the repository at this point in the history
…into develop
  • Loading branch information
Kimmoongi0320 committed Aug 31, 2024
2 parents c723e5f + 2654bae commit 41e7c58
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Builder;

@Builder
Expand All @@ -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
) {
}

0 comments on commit 41e7c58

Please sign in to comment.