fix password reset redirect bug

This commit is contained in:
omair saleh
2022-04-26 12:42:37 +08:00
parent 95c538e66b
commit 95bf0a5873
+1 -1
View File
@@ -50,7 +50,7 @@ const app = new Vue({
store,
created(){
this.routesGuard();
if (!this.$store.getters.isAdmin && !('company_marking' in this.$store.getters.getDecodedAccessToken.user) && (this.isProtectedRoute() || this.isWithTokenRoute())) {
if (!this.$store.getters.isAdmin && !('company_marking' in this.$store.getters.getDecodedAccessToken.user) && this.isProtectedRoute() && !this.isWithTokenRoute()) {
this.$store.dispatch('crudRequest', {endpoint: this.route('api.account.authentication.refresh'), method: 'get'}).then(response => {
let success = response.ok;
response.json().then(response => {