From 869127478acd0a69c360a664e4ee7c403cf7fe10 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Mon, 24 Feb 2025 10:10:13 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9B=E0=B8=A5=E0=B8=B5=E0=B9=88?= =?UTF-8?q?=E0=B8=A2=E0=B8=99=E0=B9=80=E0=B8=AA=E0=B9=89=E0=B8=99=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ResetPassword.vue | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) 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()