Skip to content

Commit

Permalink
Merge pull request #77 from uzhjd/main
Browse files Browse the repository at this point in the history
fix: SignUp
  • Loading branch information
uzhjd authored Feb 28, 2022
2 parents 0bd3b47 + 1862fe0 commit 5f98616
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@
public class UserRequest {
@Schema(description = "사용자의 아이디", nullable = false, example = "ujeong1009")
@NotBlank(message = "아이디를 입력하세요!")
@Size(max = 10, message = "10자 이하로 입력하세요!")
//@Pattern(regexp = "(?=\\w)[\\w]{1,10}$") -> 숫자 또는 문자
@Pattern(regexp = "(?=.*[a-zA-Z])(?=.*[\\d])[a-zA-Z\\d]{1,10}$", message = "아이디 조건을 만족해주세요!")
@Size(max = 15, message = "15자 이하로 입력하세요!")
@Pattern(regexp = "(?=\\w)[\\w]{1,10}$")
private String userId;

@Schema(description = "사용자의 비밀번호", nullable = false, example = "asdf1234")
@NotBlank(message = "비밀번호를 입력하세요!")
@Pattern(regexp = "(?=.*[a-zA-Z])(?=.*[\\d])(?=.*[~!@#$%^&*])[a-zA-Z\\d~!@#$%^&*]{8,20}$", message = "비밀번호 조건을 만족해주세요!")
//@Pattern(regexp = "([\\d])\\1\\1\\1", message = "연속된 숫자는 사용할 수 없습니다.")
@Size(min = 8, max = 20, message = "8자~20자 입력하세요!")
private String userPassword;

Expand Down

0 comments on commit 5f98616

Please sign in to comment.