mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-13 09:04:04 +01:00
Faster frontend authentication.
This commit is contained in:
@@ -490,9 +490,6 @@ router.beforeEach(async (to, from, next) => {
|
||||
const previousPage = window.location.href
|
||||
sessionStorage.setItem('previousPage', previousPage)
|
||||
const authStore = useAuthStore()
|
||||
if (!authStore.authUser) {
|
||||
await authStore.initialize()
|
||||
}
|
||||
const isAuth = await authStore.validateAccess()
|
||||
if (isAuth) {
|
||||
if (to.meta.allowedRoles !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user