From 37ecad30ea5f8c890c14bb8b7565d5287cfb4db3 Mon Sep 17 00:00:00 2001 From: Joyelle Ndagijimana Date: Mon, 17 Mar 2025 11:26:38 +0100 Subject: [PATCH] feat: todo in menubar toevoegen --- frontend/src/components/MenuBar.vue | 2 ++ frontend/src/router/index.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/MenuBar.vue b/frontend/src/components/MenuBar.vue index 122d08e2..b6adf606 100644 --- a/frontend/src/components/MenuBar.vue +++ b/frontend/src/components/MenuBar.vue @@ -12,6 +12,8 @@ const path = "/user"; const role = localStorage.getItem("activeRole"); + + //TODO: use authState form services map to get user token const name = "Kurt Cobain"; const initials = name .split(" ") diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 715b047c..1bac40ef 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -109,7 +109,7 @@ const router = createRouter({ }); router.beforeEach(async (to, from, next) => { - // Verify if user is logged in for paths that require access + // Verify if user is logged in for paths that require authentication if (to.meta.requiresAuth) { if (!authState.isLoggedIn) { next("/login");