token instead of sessionId needed fot authorization

This commit is contained in:
Moriz Wahl 2021-08-30 16:57:04 +02:00
parent 5ff9842c0b
commit a44938fc38

View File

@ -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()