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