mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
token instead of sessionId needed fot authorization
This commit is contained in:
parent
5ff9842c0b
commit
a44938fc38
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user