mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 08:32:14 +00:00
vue frontend update
This commit is contained in:
21
resources/js/router.js
vendored
21
resources/js/router.js
vendored
@@ -4,6 +4,8 @@ import store from '@/store'
|
||||
|
||||
import Index from './views/Auth/SignIn'
|
||||
import SignUp from './views/Auth/SignUp'
|
||||
import SharedContent from './views/Shared/SharedContent'
|
||||
import VerifyByPassword from './views/Shared/VerifyByPassword'
|
||||
import ForgottenPassword from './views/Auth/ForgottenPassword'
|
||||
import CreateNewPassword from './views/Auth/CreateNewPassword'
|
||||
|
||||
@@ -47,6 +49,22 @@ const router = new Router({
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'SharedContent',
|
||||
path: '/shared',
|
||||
component: SharedContent,
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'VerifyByPassword',
|
||||
path: '/protected',
|
||||
component: VerifyByPassword,
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Files',
|
||||
path: '/files',
|
||||
@@ -80,7 +98,8 @@ router.beforeEach((to, from, next) => {
|
||||
// this route requires auth, check if logged in
|
||||
// if not, redirect to login page.
|
||||
|
||||
if ( ! store.getters.isLogged || ! config.hasAuthCookie) {
|
||||
//if ( ! store.getters.isLogged) {
|
||||
if ( false ) {
|
||||
next({
|
||||
name: 'SignIn',
|
||||
query: { redirect: to.fullPath }
|
||||
|
||||
Reference in New Issue
Block a user