diff --git a/src/api/api.checkin.ts b/src/api/api.checkin.ts index b280cfa..b14ccaf 100644 --- a/src/api/api.checkin.ts +++ b/src/api/api.checkin.ts @@ -13,5 +13,6 @@ export default { fileByFile: (name: string, group: string, id: string, fileName: string) => `${urlFile}/file/${name}/${group}/${id}/${fileName}`, - resetPassword:`${orgKeycloak}/user/change-password` + changePassword:`${orgKeycloak}/user/change-password`, + resetPassword:`${orgKeycloak}/user/reset-password` } diff --git a/src/views/MainView.vue b/src/views/MainView.vue index 8e09cd9..6cf7bd4 100644 --- a/src/views/MainView.vue +++ b/src/views/MainView.vue @@ -220,7 +220,7 @@ function closeDialog() { async function onSubmit() { showLoader() await http - .post(config.API.resetPassword, { + .post(config.API.changePassword, { password: newPassword.value, }) .then(async (res) => { diff --git a/src/views/ResetPassword.vue b/src/views/ResetPassword.vue index 52eeb64..c23d7cd 100644 --- a/src/views/ResetPassword.vue +++ b/src/views/ResetPassword.vue @@ -2,6 +2,9 @@