From 4aa7a659a409e3a6de342b15d8bc0fea54b57272 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Fri, 21 Feb 2025 16:39:50 +0700 Subject: [PATCH] UI resetpassword --- src/api/api.checkin.ts | 3 +- src/views/MainView.vue | 2 +- src/views/ResetPassword.vue | 98 +++++++++++++++++++++---------------- 3 files changed, 59 insertions(+), 44 deletions(-) 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 @@