Skip to content

Commit

Permalink
refactor: 회원가입 조건 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
xxoznge committed Jul 4, 2024
1 parent f1ee644 commit a325bc8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

public record UserJoinRequest(
@NotBlank(message = "[ERROR] 아이디 입력은 필수 입니다.")
@Pattern(regexp = "[^\\p{InEmoticons}]", message = "[ERROR] 아이디에 이모티콘을 포함할 수 없습니다.")
@Pattern(regexp = "^[a-zA-Z가-힣0-9]{3,}$", message = "[ERROR] 아이디는 한글, 영어 또는 숫자로 3글자 이상이어야 합니다.")
String username,
@NotBlank(message = "[ERROR] 비밀번호 입력은 필수입니다.")
@Size(min = 10, max = 100, message = "[ERROR] 비밀번호는 최소 10자리 이상이어야 합니다.")
@Pattern(regexp = "[^\\p{InEmoticons}]", message = "[ERROR] 비밀번호에 이모티콘을 포함할 수 없습니다.")
@Pattern(regexp = "^[a-zA-Z]{10,100}$", message = "[ERROR] 비밀번호는 영어여야 합니다.")
String password,
@NotBlank(message = "[ERROR] 닉네임 입력은 필수입니다.")
@Pattern(regexp = "^[가-힣]{2,7}$", message = "[ERROR] 닉네임은 한글로 2~7글자여야 합니다.")
Expand Down

0 comments on commit a325bc8

Please sign in to comment.