เปลี่ยนเส้น API
This commit is contained in:
parent
b5e182e0e2
commit
869127478a
1 changed files with 3 additions and 14 deletions
|
|
@ -24,28 +24,17 @@ const username = ref<string>('')
|
||||||
async function onSubmit() {
|
async function onSubmit() {
|
||||||
showLoader()
|
showLoader()
|
||||||
await axios
|
await axios
|
||||||
.post(`${env.API_URI}/org/keycloak/user/reset-password`, {
|
.post(`${env.API_URI}/org/unauthorize/user/reset-password`, {
|
||||||
username: username.value,
|
username: username.value,
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.data.result) {
|
if (res) {
|
||||||
isReset.value = true
|
isReset.value = true
|
||||||
isFalse.value = false
|
isFalse.value = false
|
||||||
} else {
|
|
||||||
isFalse.value = true
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
$q.dialog({
|
isFalse.value = true
|
||||||
component: CustomComponent,
|
|
||||||
componentProps: {
|
|
||||||
title: `ข้อความแจ้งเตือน`,
|
|
||||||
message: `${err.response.data.message}`,
|
|
||||||
icon: 'warning',
|
|
||||||
color: 'red',
|
|
||||||
onlycancel: true,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
hideLoader()
|
hideLoader()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue