fix password reset redirect bug

This commit is contained in:
omair saleh
2022-04-26 12:49:31 +08:00
parent 4a15e022a7
commit 8e10d68257
-1
View File
@@ -50,7 +50,6 @@ const app = new Vue({
store,
created(){
this.routesGuard();
console.log(!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.$store.dispatch('crudRequest', {endpoint: this.route('api.account.authentication.refresh'), method: 'get'}).then(response => {
let success = response.ok;