เปลี่ยนเส้น API

This commit is contained in:
setthawutttty 2025-02-24 10:10:13 +07:00
parent b5e182e0e2
commit 869127478a

View file

@ -24,28 +24,17 @@ const username = ref<string>('')
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()