기존 비밀번호 체크

This commit is contained in:
yoon 2025-02-07 14:53:17 +09:00
parent 3f7cf45f4c
commit 58fdb1f673

View File

@ -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