From ad0973249eb2ec98a8a0dbdcc67a877672e49501 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Tue, 11 Feb 2025 10:25:11 +0700 Subject: [PATCH] fixing --- src/views/home.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/home.vue b/src/views/home.vue index 6691dae..3546595 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -170,11 +170,10 @@ onMounted(async () => { await axios .post( `${config.API.sso}/kcauth`, - {}, + { uid }, { headers: { "Content-Type": "application/json", - Cookie: `uid=${uid};`, }, withCredentials: true, // Include cookies with the request } @@ -200,7 +199,7 @@ onMounted(async () => { if (location.hostname == "hrms.chin.in.th") { router.push("/sso"); } else { - // window.location.href = `${config.API.URL_SSO}`; + window.location.href = `${config.API.URL_SSO}`; } });