|
|
|
@ -362,13 +362,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) {
|
|
|
|
@ -400,12 +397,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)
|
|
|
|
|