From 95c538e66ba22f2177a05de7d3e0c1b88191669d Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 26 Apr 2022 12:28:56 +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 cddcf3a7..4051dc09 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()) { + 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 => {