Skip to content

Commit

Permalink
Chore: error message 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
gahyuun committed Jan 27, 2024
1 parent 997fca2 commit 3dc5a23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pages/users/login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const Login = () => {
pattern: {
value: /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,20}$/,
message:
"영문자, 숫자 포함 최소 8~20자로 입력하세요",
"영문자(대,소문자), 숫자 포함 최소 8~20자로 입력하세요",
},
})}
data-cy="password-input"
Expand Down
5 changes: 3 additions & 2 deletions src/pages/users/signup/Signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,14 @@ const Signup = () => {
<div className="input-inner__item">
<input
type={isPwVisible ? "text" : "password"}
placeholder="영문자, 숫자 포함 최소 8~20자로 입력하세요"
placeholder="영문자(대,소문자), 숫자 포함 최소 8~20자로 입력하세요"
className="input-visible"
{...register("password", {
required: "비밀번호를 입력하세요",
pattern: {
value: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,20}$/,
message: "영문자, 숫자 포함 최소 8~20자로 입력하세요",
message:
"영문자(대,소문자), 숫자 포함 최소 8~20자로 입력하세요",
},
})}
/>
Expand Down

0 comments on commit 3dc5a23

Please sign in to comment.