diff --git a/front/MyINPulse-front/src/components/LoginComponent.vue b/front/MyINPulse-front/src/components/LoginComponent.vue index 70a8833..acf1399 100644 --- a/front/MyINPulse-front/src/components/LoginComponent.vue +++ b/front/MyINPulse-front/src/components/LoginComponent.vue @@ -34,10 +34,12 @@ onMounted(() => { checkPending( (response) => { const isValidated = response.data === true; - if (isValidated) { - router.push("/JorCproject"); + if (isValidated && roles.includes("MyINPulse-entrepreneur")) { + router.push("/canvas"); + //router.push("/JorCproject"); } else { - router.push("/finalize"); + router.push("/JorCproject"); + //router.push("/finalize"); } }, (error) => {