aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2018-11-30 19:49:48 +0000
committerlambda <pleromagit@rogerbraun.net>2018-11-30 19:49:48 +0000
commitfdd8cb619a50eb4bf6d7ead3262c3567206c7a54 (patch)
tree79848b5efe593a9993e1ee530b337f65208c0bc8
parent7d12a65b3b61c1a0018e1361e19f8ae285f67cd0 (diff)
parent59b84c2a06f3d280419b2bfd6561130dd83803c1 (diff)
Merge branch 'logout_on_password_change' into 'develop'
Logout user on password change Closes #185 See merge request pleroma/pleroma-fe!384
-rw-r--r--src/components/user_settings/user_settings.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/user_settings/user_settings.js b/src/components/user_settings/user_settings.js
index a6203962..761e674a 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('/')
}
}
}