fix password reset redirect bug

This commit is contained in:
omair saleh
2022-04-26 12:49:17 +08:00
parent 0f86a514b0
commit 4a15e022a7
+1 -1
View File
@@ -5,7 +5,7 @@ export default {
(this.$store.getters.isAuthenticated && !this.isProtectedRoute()&& this.isWithTokenRoute()) ? window.location.href = this.route('dashboard') : '';
},
isProtectedRoute(){
const unprotectedRoutes = [this.route('login'), this.route('account.email.verification')];
const unprotectedRoutes = [this.route('login'), this.route('account.email.verification'), this.route('account.password.reset')];
return !unprotectedRoutes.includes(window.location.href);
},
isWithTokenRoute(){