From 7fc06035c7cb04bdb2a7989737b4d9797af24328 Mon Sep 17 00:00:00 2001 From: Mohamed Maoulainine Maoulainine Date: Fri, 9 May 2025 18:47:37 +0200 Subject: [PATCH] fix: unauth users redirection --- front/MyINPulse-front/src/components/LoginComponent.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/front/MyINPulse-front/src/components/LoginComponent.vue b/front/MyINPulse-front/src/components/LoginComponent.vue index bdacae9..02958f3 100644 --- a/front/MyINPulse-front/src/components/LoginComponent.vue +++ b/front/MyINPulse-front/src/components/LoginComponent.vue @@ -26,6 +26,9 @@ onMounted(() => { } else if (roles.includes("MyINPulse-entrepreneur")) { router.push("/canvas"); } + else{ + router.push("/JorCproject") + } } catch (err) { console.error("Failed to decode token", err); }