From a44938fc380bfe85f336b74084cd8f8a42c41681 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Mon, 30 Aug 2021 16:57:04 +0200 Subject: [PATCH] token instead of sessionId needed fot authorization --- frontend/src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/main.js b/frontend/src/main.js index e534743c3..823df516c 100755 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -40,7 +40,7 @@ Vue.config.productionTip = false loadAllRules(i18n) router.beforeEach((to, from, next) => { - if (to.meta.requiresAuth && !store.state.sessionId) { + if (to.meta.requiresAuth && !store.state.token) { next({ path: '/login' }) } else { next()