mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add comment for authentication
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
This commit is contained in:
parent
61075e1493
commit
8ae46474fc
@ -6,6 +6,7 @@ const addNavigationGuards = (router, store) => {
|
|||||||
store.commit('publisherId', publisherId)
|
store.commit('publisherId', publisherId)
|
||||||
delete to.query.pid
|
delete to.query.pid
|
||||||
}
|
}
|
||||||
|
// handle authentication
|
||||||
if (to.meta.requiresAuth && !store.state.token) {
|
if (to.meta.requiresAuth && !store.state.token) {
|
||||||
next({ path: '/login' })
|
next({ path: '/login' })
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user