Skip to content

Commit

Permalink
Merge pull request #63 from Yanol-Market/hotfix/62
Browse files Browse the repository at this point in the history
Hotfix: 회원가입 휴대폰 번호 포맷 변경
  • Loading branch information
cyPark95 authored Jan 14, 2024
2 parents 8d82d98 + 7923036 commit 60096e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import site.goldenticket.domain.user.entity.User;

Expand All @@ -20,7 +19,7 @@ public record JoinRequest(
@Size(min = 6, max = 20, message = "비밀번호는 6자 이상, 20자 이하여야 합니다.")
String password,
@NotEmpty(message = "휴대폰 번호는 필수 입력 항목입니다.")
@Pattern(regexp = "^\\d{2,3}-\\d{3,4}-\\d{4}$", message = "000-0000-0000 형식이여야 합니다.")
@Size(min = 11, max = 11, message = "휴대폰 번호는 11자의 숫자여야 합니다.")
String phoneNumber,
Long yanoljaId,
AgreementRequest agreement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public final class UserUtils {
public static String PASSWORD = "password";
public static String NAME = "name";
public static String NICKNAME = "nickname";
public static String PHONE_NUMBER = "010-0000-0000";
public static String PHONE_NUMBER = "01000000000";

public static User createUser(String encodePassword) {
return User.builder()
Expand Down

0 comments on commit 60096e3

Please sign in to comment.