From 8ae6cc5a42e61085d81f88d3c58fb82487af3632 Mon Sep 17 00:00:00 2001 From: uzhjd <73466440+uzhjd@users.noreply.github.com> Date: Mon, 28 Feb 2022 10:09:12 +0900 Subject: [PATCH 1/2] fix: SignUp --- .../main/java/com/gdsc/backend/dto/request/UserRequest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/src/main/java/com/gdsc/backend/dto/request/UserRequest.java b/backend/src/main/java/com/gdsc/backend/dto/request/UserRequest.java index 7e6ecaf..f944016 100644 --- a/backend/src/main/java/com/gdsc/backend/dto/request/UserRequest.java +++ b/backend/src/main/java/com/gdsc/backend/dto/request/UserRequest.java @@ -19,14 +19,12 @@ 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 = "아이디 조건을 만족해주세요!") + @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; From 1862fe0834d5cf00271f1d34f585fe8f13e196db Mon Sep 17 00:00:00 2001 From: uzhjd <73466440+uzhjd@users.noreply.github.com> Date: Mon, 28 Feb 2022 10:20:38 +0900 Subject: [PATCH 2/2] fix: SignUp --- .../src/main/java/com/gdsc/backend/dto/request/UserRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/com/gdsc/backend/dto/request/UserRequest.java b/backend/src/main/java/com/gdsc/backend/dto/request/UserRequest.java index f944016..08653de 100644 --- a/backend/src/main/java/com/gdsc/backend/dto/request/UserRequest.java +++ b/backend/src/main/java/com/gdsc/backend/dto/request/UserRequest.java @@ -18,7 +18,7 @@ public class UserRequest { @Schema(description = "사용자의 아이디", nullable = false, example = "ujeong1009") @NotBlank(message = "아이디를 입력하세요!") - @Size(max = 10, message = "10자 이하로 입력하세요!") + @Size(max = 15, message = "15자 이하로 입력하세요!") @Pattern(regexp = "(?=\\w)[\\w]{1,10}$") private String userId;