diff --git a/src/store/user.js b/src/store/user.js index 48717457..bdf0ad42 100644 --- a/src/store/user.js +++ b/src/store/user.js @@ -352,13 +352,10 @@ export default { console.log(err) } } - await context.dispatch('forwardHome') } catch (err) { console.debug(err) await context.dispatch('logout') } - } else { - await context.dispatch('forwardHome') } }, async changePassword (context, newPassword) { @@ -390,12 +387,6 @@ export default { commit('userPasswordFailed', err.message) } }, - async forwardHome (context) { - const start = '/user/dashboard' - if (context.rootState.route?.path !== start) { - await this.$router.push({ name: 'root' }) - } - }, async getCustomLogo (context) { if (!context.state.logo) { context.commit('updateLogoRequestState', true)