From 95bf0a5873e638b6c0c50d504def5fe4c9402f2a Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 26 Apr 2022 12:42:37 +0800 Subject: [PATCH] fix password reset redirect bug --- resources/assets/vue/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/vue/app.js b/resources/assets/vue/app.js index 4051dc09..d9e2e465 100644 --- a/resources/assets/vue/app.js +++ b/resources/assets/vue/app.js @@ -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 => {