From 1b6c326442faf75942d92a4aa4e81445ddb8782e Mon Sep 17 00:00:00 2001 From: jyj1289 Date: Thu, 5 Sep 2024 20:11:01 +0900 Subject: [PATCH] =?UTF-8?q?perf(#116):=20=EB=B9=84=EB=B0=80=EB=B2=88?= =?UTF-8?q?=ED=98=B8=20=EC=9E=90=EB=A6=BF=EC=88=98=20=EB=B3=80=EA=B2=BD=20?= =?UTF-8?q?-=20ReDos=EB=A5=BC=20=EB=B0=A9=EC=A7=80=ED=95=98=EA=B8=B0=20?= =?UTF-8?q?=EC=9C=84=ED=95=B4=EC=84=9C=20=EB=B9=84=EB=B0=80=EB=B2=88?= =?UTF-8?q?=ED=98=B8=EB=A5=BC=2020=EA=B8=80=EC=9E=90=20=EC=9D=B4=ED=95=98?= =?UTF-8?q?=EB=A1=9C=20=EC=A0=9C=ED=95=9C=ED=96=88=EC=96=B4=EC=9A=94.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maru/presentation/user/dto/request/SignUpUserRequest.java | 1 + .../presentation/user/dto/request/UpdatePasswordRequest.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/com/bamdoliro/maru/presentation/user/dto/request/SignUpUserRequest.java b/src/main/java/com/bamdoliro/maru/presentation/user/dto/request/SignUpUserRequest.java index 6df45e95..3769a123 100644 --- a/src/main/java/com/bamdoliro/maru/presentation/user/dto/request/SignUpUserRequest.java +++ b/src/main/java/com/bamdoliro/maru/presentation/user/dto/request/SignUpUserRequest.java @@ -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; diff --git a/src/main/java/com/bamdoliro/maru/presentation/user/dto/request/UpdatePasswordRequest.java b/src/main/java/com/bamdoliro/maru/presentation/user/dto/request/UpdatePasswordRequest.java index 3639771d..eac10d4f 100644 --- a/src/main/java/com/bamdoliro/maru/presentation/user/dto/request/UpdatePasswordRequest.java +++ b/src/main/java/com/bamdoliro/maru/presentation/user/dto/request/UpdatePasswordRequest.java @@ -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;