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 @@
Every day, youth around the world face the many challenges that come with being a student— from teaching yourself something the teacher glossed over to losing track of what’s due, we totally get what it’s like.
No worries, Quento’s got your back. As students ourselves, we’ve designed our toolkit to allow you to improve your academic performance while staying on top of your school’s latest happenings. Every single feature of our platform has been built with YOU in mind. What are you waiting for? Join the revolution today!