기존 비밀번호 체크
This commit is contained in:
parent
3f7cf45f4c
commit
58fdb1f673
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user