diff --git a/middleware/router-auth.ts b/middleware/router-auth.ts index ed03133..98e4362 100644 --- a/middleware/router-auth.ts +++ b/middleware/router-auth.ts @@ -11,7 +11,8 @@ export default function({store, redirect, route} : Context) { redirect('/home') } - if(store.state.auth.user == null && (route.name == null || isAdminRoute(route))) { + if(store.state.auth.user == null && (route.name == null || isAdminRoute(route)) && route.name != "auth/Login" && route.name!="auth/Signup") { + redirect('/auth/login') }; } @@ -22,4 +23,5 @@ function isAdminRoute(route : Route) { return true } + return false } \ No newline at end of file diff --git a/pages/index.vue b/pages/index.vue index 0d87cc0..69b2a8b 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -23,7 +23,7 @@

School is hard.
Learning doesn't have to be.

Quento’s suite of tools helps you streamline your studying like never before.

- +