From 57c3452ebc861d0622a9f1de5ba1124f6eb21d1e Mon Sep 17 00:00:00 2001 From: dbwhdtjr0457 Date: Tue, 5 Dec 2023 14:45:33 +0900 Subject: [PATCH 1/3] =?UTF-8?q?chore:=20DB=EC=97=90=20=EC=A1=B4=EC=9E=AC?= =?UTF-8?q?=ED=95=98=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EC=95=84=EC=9D=B4?= =?UTF-8?q?=EB=94=94=20=EC=98=A4=EB=A5=98=20=EB=A9=94=EC=8B=9C=EC=A7=80?= =?UTF-8?q?=EC=99=80,=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EA=B7=9C=EC=B9=99?= =?UTF-8?q?=EC=97=90=20=EB=A7=9E=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EA=B3=84?= =?UTF-8?q?=EC=A0=95=20=EC=98=A4=EB=A5=98=20=EB=A9=94=EC=8B=9C=EC=A7=80=20?= =?UTF-8?q?=ED=86=B5=EC=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FE/src/components/LoginModal/LoginModal.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/FE/src/components/LoginModal/LoginModal.js b/FE/src/components/LoginModal/LoginModal.js index b86036b..4732fb0 100644 --- a/FE/src/components/LoginModal/LoginModal.js +++ b/FE/src/components/LoginModal/LoginModal.js @@ -66,8 +66,7 @@ function LoginModal() { const idRegex = /^[A-Za-z0-9_-]{5,20}$/; const pwRegex = /^[A-Za-z0-9!@#$%^&*()_+=-~]{5,20}$/; if (!idRegex.test(userId) || !pwRegex.test(password)) { - errorRef.current.innerText = - "아이디 또는 비밀번호를 잘못 입력했습니다. 입력하신 내용을 다시 확인해주세요."; + errorRef.current.innerText = "존재하지 않는 아이디입니다."; return; } From 8a399395a3a698b236799679371e12dde6c3a6ba Mon Sep 17 00:00:00 2001 From: dbwhdtjr0457 Date: Tue, 5 Dec 2023 15:35:17 +0900 Subject: [PATCH 2/3] =?UTF-8?q?chore:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20?= =?UTF-8?q?=EC=8B=9C=20=EC=97=94=ED=84=B0=20=ED=82=A4=EB=A1=9C=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=EC=9D=B8=20=EC=8B=9C=EB=8F=84=20=EA=B0=80=EB=8A=A5?= =?UTF-8?q?=ED=95=98=EB=8F=84=EB=A1=9D=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FE/src/components/LoginModal/LoginModal.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/FE/src/components/LoginModal/LoginModal.js b/FE/src/components/LoginModal/LoginModal.js index 4732fb0..f46fdcd 100644 --- a/FE/src/components/LoginModal/LoginModal.js +++ b/FE/src/components/LoginModal/LoginModal.js @@ -83,12 +83,22 @@ function LoginModal() { placeholder='아이디를 입력하세요' value={userId} onChange={(e) => setUserId(e.target.value)} + onKeyDown={(e) => { + if (e.key === "Enter") { + checkValid(); + } + }} /> setPassword(e.target.value)} + onKeyDown={(e) => { + if (e.key === "Enter") { + checkValid(); + } + }} /> Date: Tue, 5 Dec 2023 15:40:06 +0900 Subject: [PATCH 3/3] =?UTF-8?q?chore:=20=ED=9A=8C=EC=9B=90=EA=B0=80?= =?UTF-8?q?=EC=9E=85=20=EC=8B=9C=20=EC=95=84=EC=9D=B4=EB=94=94,=20?= =?UTF-8?q?=EB=B9=84=EB=B0=80=EB=B2=88=ED=98=B8=20=EA=B7=9C=EC=B9=99=20?= =?UTF-8?q?=EC=96=B4=EA=B8=B0=EB=8A=94=20=EC=8B=9C=EB=8F=84=EB=A5=BC=20?= =?UTF-8?q?=ED=95=A0=20=EA=B2=BD=EC=9A=B0=20=EC=95=88=EB=82=B4=20=EB=A9=94?= =?UTF-8?q?=EC=8B=9C=EC=A7=80=20=EC=B6=9C=EB=A0=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FE/src/components/SignUpModal/SignUpModal.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/FE/src/components/SignUpModal/SignUpModal.js b/FE/src/components/SignUpModal/SignUpModal.js index 64fbb49..357afd1 100644 --- a/FE/src/components/SignUpModal/SignUpModal.js +++ b/FE/src/components/SignUpModal/SignUpModal.js @@ -47,7 +47,8 @@ function SignUpModal() { const idRegex = /^[A-Za-z0-9_-]{5,20}$/; if (!idRegex.test(userId)) { - errorRef.current.innerText = "아이디 형식이 올바르지 않습니다."; + errorRef.current.innerText = `아이디 형식이 올바르지 않습니다. + 아이디는 5~20자의 영문 소문자, 숫자와 특수기호(_),(-)만 사용 가능합니다.`; return; } @@ -58,7 +59,8 @@ function SignUpModal() { const pwRegex = /^[A-Za-z0-9!@#$%^&*()_+=-~]{5,20}$/; if (!pwRegex.test(password)) { - errorRef.current.innerText = "비밀번호 형식이 올바르지 않습니다."; + errorRef.current.innerText = `비밀번호 형식이 올바르지 않습니다. + 비밀번호는 5~20자의 영문 대소문자, 숫자, 특수문자만 사용 가능합니다.`; return; }