diff --git a/src/components/user_settings/user_settings.js b/src/components/user_settings/user_settings.js index a6203962..b1d7663f 100644 --- a/src/components/user_settings/user_settings.js +++ b/src/components/user_settings/user_settings.js @@ -235,6 +235,7 @@ const UserSettings = { if (res.status === 'success') { this.changedPassword = true this.changePasswordError = false + this._logout() } else { this.changedPassword = false this.changePasswordError = res.error @@ -243,6 +244,10 @@ const UserSettings = { }, activateTab (tabName) { this.activeTab = tabName + }, + _logout () { + this.$store.dispatch('logout') + this.$router.replace('/') } } }