add comment for authentication

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
This commit is contained in:
Moriz Wahl 2021-10-07 14:06:43 +02:00 committed by GitHub
parent 61075e1493
commit 8ae46474fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {