commit: fdd8cb619a50eb4bf6d7ead3262c3567206c7a54
parent: 7d12a65b3b61c1a0018e1361e19f8ae285f67cd0
Author: lambda <pleromagit@rogerbraun.net>
Date: Fri, 30 Nov 2018 19:49:48 +0000
Merge branch 'logout_on_password_change' into 'develop'
Logout user on password change
Closes #185
See merge request pleroma/pleroma-fe!384
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git 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('/')
}
}
}