From 8ae46474fccd8167fd2d183a3f2f68c38df3788e Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Thu, 7 Oct 2021 14:06:43 +0200 Subject: [PATCH] add comment for authentication Co-authored-by: Ulf Gebhardt --- frontend/src/routes/guards.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/routes/guards.js b/frontend/src/routes/guards.js index 791978352..eebd6976e 100644 --- a/frontend/src/routes/guards.js +++ b/frontend/src/routes/guards.js @@ -6,6 +6,7 @@ const addNavigationGuards = (router, store) => { store.commit('publisherId', publisherId) delete to.query.pid } + // handle authentication if (to.meta.requiresAuth && !store.state.token) { next({ path: '/login' }) } else {