From 58fdb1f67397897a5596b733ee2836ebbd1659a8 Mon Sep 17 00:00:00 2001 From: yoon Date: Fri, 7 Feb 2025 14:53:17 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B8=B0=EC=A1=B4=20=EB=B9=84=EB=B0=80?= =?UTF-8?q?=EB=B2=88=ED=98=B8=20=EC=B2=B4=ED=81=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/user/FindPassword.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/components/user/FindPassword.vue b/src/components/user/FindPassword.vue index 77a8666..579e4a0 100644 --- a/src/components/user/FindPassword.vue +++ b/src/components/user/FindPassword.vue @@ -159,6 +159,16 @@ return; } + const checkResponse = await $api.post('user/checkPassword', { + id: id.value, + password: password.value + }); + + if (checkResponse.data.data === false) { + toastStore.onToast('기존 비밀번호와 동일한 비밀번호로 변경할 수 없습니다.', 'e'); + return; + } + const response = await $api.patch('user/pwNew', { id: id.value, password: password.value