aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_settings/user_settings.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/user_settings/user_settings.js')
-rw-r--r--src/components/user_settings/user_settings.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/user_settings/user_settings.js b/src/components/user_settings/user_settings.js
index b1d7663f..761e674a 100644
--- a/src/components/user_settings/user_settings.js
+++ b/src/components/user_settings/user_settings.js
@@ -235,7 +235,7 @@ const UserSettings = {
if (res.status === 'success') {
this.changedPassword = true
this.changePasswordError = false
- this._logout()
+ this.logout()
} else {
this.changedPassword = false
this.changePasswordError = res.error
@@ -245,7 +245,7 @@ const UserSettings = {
activateTab (tabName) {
this.activeTab = tabName
},
- _logout () {
+ logout () {
this.$store.dispatch('logout')
this.$router.replace('/')
}