From afc61ed3ce79d2172e240696523c1223af4e0926 Mon Sep 17 00:00:00 2001 From: jiyeon Date: Fri, 7 Feb 2025 16:32:26 +0900 Subject: [PATCH 01/13] =?UTF-8?q?=E2=9C=A8=20=20[feat]=20:=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=EC=9D=B8=20=EC=97=90=EB=9F=AC=EC=97=90=20=EB=94=B0?= =?UTF-8?q?=EB=A5=B8=20=EB=AA=A8=EB=8B=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/LoginView.vue | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/src/views/LoginView.vue b/src/views/LoginView.vue index 4e31683c..2a687513 100644 --- a/src/views/LoginView.vue +++ b/src/views/LoginView.vue @@ -1,5 +1,12 @@ From be0d5a7d97ed808cdb22aa48e47e89a40016f572 Mon Sep 17 00:00:00 2001 From: jiyeon Date: Fri, 7 Feb 2025 18:16:14 +0900 Subject: [PATCH 03/13] =?UTF-8?q?=E2=9C=A8=20=20[feat]=20:=20axios=20?= =?UTF-8?q?=EC=97=90=EB=9F=AC=EC=B2=98=EB=A6=AC=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/axios.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/utils/axios.ts b/src/utils/axios.ts index afbac70d..f763e89c 100644 --- a/src/utils/axios.ts +++ b/src/utils/axios.ts @@ -48,9 +48,11 @@ const setInterceptors = (instance: AxiosInstance) => { console.log('상태확인 에러메세지:', error.response) switch (error.response.status) { case 401: - Cookies.remove('accessToken') - Cookies.remove('refreshToken') - window.location.href = 'login' + if (error.response.data === 'AUTH_003') { + Cookies.remove('accessToken') + Cookies.remove('refreshToken') + window.location.href = 'login' + } break case 403: { if (error.response.data !== 'AUTH_002') { From 145ed26b7a1cdd4536f6369d5aca557c5789ce04 Mon Sep 17 00:00:00 2001 From: jiyeon Date: Fri, 7 Feb 2025 18:17:51 +0900 Subject: [PATCH 04/13] =?UTF-8?q?=E2=9C=A8=20=20[feat]=20:=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=EC=9D=B8=20=ED=9A=8C=EC=9B=90=EC=A0=95=EB=B3=B4=20?= =?UTF-8?q?=EC=97=90=EB=9F=AC=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/LoginView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/LoginView.vue b/src/views/LoginView.vue index 9691d40e..2a687513 100644 --- a/src/views/LoginView.vue +++ b/src/views/LoginView.vue @@ -41,7 +41,7 @@
비밀번호 재설정 From 8ef66b79aae3b46b69f17104e2377e391a21f655 Mon Sep 17 00:00:00 2001 From: jiyeon Date: Fri, 7 Feb 2025 18:18:28 +0900 Subject: [PATCH 05/13] =?UTF-8?q?=E2=9C=A8=20=20[feat]=20:=20=EB=B9=84?= =?UTF-8?q?=EB=B0=80=EB=B2=88=ED=98=B8=20=EC=9C=A0=ED=9A=A8=EC=84=B1=20?= =?UTF-8?q?=EA=B2=80=EC=82=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/PwChange.vue | 56 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 48 insertions(+), 8 deletions(-) diff --git a/src/views/PwChange.vue b/src/views/PwChange.vue index 9b5ee2a0..ec488f4e 100644 --- a/src/views/PwChange.vue +++ b/src/views/PwChange.vue @@ -3,7 +3,7 @@ + @close="closeModal"> @@ -27,16 +27,35 @@ v-model="newPw" placeholder="새 비밀번호를 입력해주세요" required - class="input-box" /> + ref="passwordInput" + :class="[ + 'block w-full px-4 py-4 border rounded focus:outline-none', + isInvalid ? 'border-red-1' : 'border-border-1' + ]" + @blur="validatePassword" /> +

+ 대문자, 소문자, 숫자, 특수문자 포함 8자-20자 입력해주세요 +

+ :class="[ + 'block w-full px-4 py-4 border rounded focus:outline-none', + isDifferent ? 'border-red-1' : 'border-border-1' + ]" /> +

+ 비밀번호가 일치하지 않아요 +