From fbf2fab46810fbe630c0028d3c50af38ffbd9261 Mon Sep 17 00:00:00 2001 From: Jaehyuk Yang <37584686+yangjaehyuk@users.noreply.github.com> Date: Wed, 24 Jan 2024 19:42:02 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=ED=9A=8C=EC=9B=90=20=EA=B0=80=EC=9E=85?= =?UTF-8?q?=20=EB=B9=84=EB=B0=80=20=EB=B2=88=ED=98=B8=20=EC=9C=A0=ED=9A=A8?= =?UTF-8?q?=EC=84=B1=20=EA=B2=80=EC=82=AC=20=EB=A1=9C=EC=A7=81=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20(#52)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/users/signup/Signup.tsx | 3 +-- src/utils/checkToken.ts | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pages/users/signup/Signup.tsx b/src/pages/users/signup/Signup.tsx index 5bccbc25..64b38b5a 100644 --- a/src/pages/users/signup/Signup.tsx +++ b/src/pages/users/signup/Signup.tsx @@ -61,7 +61,6 @@ const Signup = () => { const res = await instance.post(`/api/auth/members/email`, { email: email, }); - console.log(res); if (res.data.isExists === false) { setIsIdValid(true); showToast({ theme: "success", message: "사용 가능한 아이디입니다" }); @@ -246,7 +245,7 @@ const Signup = () => { {...register("password", { required: "비밀번호를 입력하세요", pattern: { - value: /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,20}$/, + value: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,20}$/, message: "영문자, 숫자 포함 최소 8~20자로 입력하세요", }, })} diff --git a/src/utils/checkToken.ts b/src/utils/checkToken.ts index 5d424c63..6e40b2db 100644 --- a/src/utils/checkToken.ts +++ b/src/utils/checkToken.ts @@ -6,7 +6,6 @@ export function isAccessTokenExpired(accessToken: string) { const decodedToken = decodeAccessToken(accessToken); const currentTime = Math.floor(Date.now() / 1000); - // return decodedToken.exp > currentTime; return decodedToken.exp < currentTime; }