เปลี่ยนเส้น 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() {
|
||||
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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue