diff --git a/src/views/ResetPassword.vue b/src/views/ResetPassword.vue index c877a51..5a60dfc 100644 --- a/src/views/ResetPassword.vue +++ b/src/views/ResetPassword.vue @@ -24,28 +24,17 @@ const username = ref('') async function onSubmit() { showLoader() await axios - .post(`${env.API_URI}/org/keycloak/user/reset-password`, { + .post(`${env.API_URI}/org/unauthorize/user/reset-password`, { username: username.value, }) .then((res) => { - if (res.data.result) { + if (res) { isReset.value = true isFalse.value = false - } else { - isFalse.value = true } }) .catch((err) => { - $q.dialog({ - component: CustomComponent, - componentProps: { - title: `ข้อความแจ้งเตือน`, - message: `${err.response.data.message}`, - icon: 'warning', - color: 'red', - onlycancel: true, - }, - }) + isFalse.value = true }) .finally(() => { hideLoader()