From 798f09251d7e80099fbde872d0f289ae38b1e626 Mon Sep 17 00:00:00 2001 From: choiyoubin <48716638+choiyoubin@users.noreply.github.com> Date: Tue, 26 Mar 2024 20:22:13 +0900 Subject: [PATCH 1/2] =?UTF-8?q?Fix/=EB=B9=84=EB=B2=88=EC=B0=BE=EA=B8=B0=20?= =?UTF-8?q?=EB=B2=88=ED=98=B8=EC=9D=B8=EC=A6=9D=EC=8B=9C=20alert=EC=B0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CertificationInputPhoneNumber.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/login/Certification/CertificationInputPhoneNumber/CertificationInputPhoneNumber.jsx b/src/components/login/Certification/CertificationInputPhoneNumber/CertificationInputPhoneNumber.jsx index c697133..0d105eb 100644 --- a/src/components/login/Certification/CertificationInputPhoneNumber/CertificationInputPhoneNumber.jsx +++ b/src/components/login/Certification/CertificationInputPhoneNumber/CertificationInputPhoneNumber.jsx @@ -22,6 +22,7 @@ function CertificationInputPhoneNumber(userInfo) { if (/^\d+$/.test(phonenumber) && phonenumber.length === 11) { // 11자리 입력 후에 if (!postmessage) { + alert("인증번호를 발송했습니다. 인증번호가 오지 않으면 입력하신 정보가 회원정보와 일치하는지 확인해 주세요.") handlePostmessage(); } else { //타이머 초기화용 setPostmessage(false); From cab2960c496e668108a72f22748164ceb3d13699 Mon Sep 17 00:00:00 2001 From: choiyoubin <48716638+choiyoubin@users.noreply.github.com> Date: Tue, 26 Mar 2024 20:30:46 +0900 Subject: [PATCH 2/2] =?UTF-8?q?Fix/=EB=B9=84=EB=B0=80=EB=B2=88=ED=98=B8=20?= =?UTF-8?q?=EC=A1=B0=EA=B1=B4=20=ED=95=B4=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UserInputPassword/UserInputPassword.jsx | 42 ++++++++++--------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/src/components/signup/UserInput/UserInputPassword/UserInputPassword.jsx b/src/components/signup/UserInput/UserInputPassword/UserInputPassword.jsx index 84a2e30..3ad3a5b 100644 --- a/src/components/signup/UserInput/UserInputPassword/UserInputPassword.jsx +++ b/src/components/signup/UserInput/UserInputPassword/UserInputPassword.jsx @@ -16,7 +16,7 @@ const UserInputPassword = () => { const handlePasswordChange = (e) => { const newPassword = e.target.value; setPassword(newPassword); - isPasswordCombinationValid(newPassword); + // isPasswordCombinationValid(newPassword); }; const handlePasswordCheckChange = (e) => { @@ -25,26 +25,27 @@ const UserInputPassword = () => { validatePassword(password, newPasswordCheck); }; - const isPasswordLength = (password) => { - const minLength = 8; - return password.length >= minLength; - }; + // const isPasswordLength = (password) => { + // const minLength = 8; + // return password.length >= minLength; + // }; - const isPasswordCombinationValid = (password) => { - const hasLetter = /[a-zA-Z]/.test(password); - const hasNumber = /\d/.test(password); - const hasSpecialChar = /[!@#$%^&*(),.?":{}|<>]/.test(password); - return hasLetter && hasNumber && hasSpecialChar; - }; + // const isPasswordCombinationValid = (password) => { + // const hasLetter = /[a-zA-Z]/.test(password); + // const hasNumber = /\d/.test(password); + // const hasSpecialChar = /[!@#$%^&*(),.?":{}|<>]/.test(password); + // return hasLetter && hasNumber && hasSpecialChar; + // }; const validatePassword = (newPassword, newPasswordCheck) => { if (newPassword !== newPasswordCheck) { setPasswordError(true); - } else if (!isPasswordLength(newPassword)) { - setPasswordError(true); - } else if (!isPasswordCombinationValid(newPassword)) { - setPasswordError(true); } else { + // } else if (!isPasswordLength(newPassword)) { + // setPasswordError(true); + // } else if (!isPasswordCombinationValid(newPassword)) { + // setPasswordError(true); + // } else { setPasswordError(false); } }; @@ -52,7 +53,8 @@ const UserInputPassword = () => {