Skip to content

Commit

Permalink
Merge pull request #117 from Bamdoliro/perf/#116
Browse files Browse the repository at this point in the history
perf(#116): 비밀번호 자릿수 변경
  • Loading branch information
jyj1289 authored Sep 5, 2024
2 parents f2209e6 + 1b6c326 commit a491274
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class SignUpUserRequest {
private String name;

@NotBlank(message = "필수값입니다.")
@Size(max = 20, message = "비밀번호는 20글자 이하여야 합니다.")
@Pattern(regexp = "^(?=.*[A-Za-z])(?=.*\\d)(?=.*[$@$!%*#?&])[A-Za-z\\d$@$!%*#?&]{8,}$",
message = "비밀번호는 최소 하나의 문자, 숫자, 특수문자를 포함하며 8 글자 이상이어야 합니다.")
private String password;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class UpdatePasswordRequest {
private String phoneNumber;

@NotBlank(message = "필수값입니다.")
@Size(max = 20, message = "비밀번호는 20글자 이하여야 합니다.")
@Pattern(regexp = "^(?=.*[A-Za-z])(?=.*\\d)(?=.*[$@$!%*#?&])[A-Za-z\\d$@$!%*#?&]{8,}$",
message = "비밀번호는 최소 하나의 문자, 숫자, 특수문자를 포함하며 8 글자 이상이어야 합니다.")
private String password;
Expand Down

0 comments on commit a491274

Please sign in to comment.