Merge branch 'logout_on_password_change' into 'develop'

Logout user on password change

Closes #185

See merge request pleroma/pleroma-fe!384
This commit is contained in:
lambda 2018-11-30 19:49:48 +00:00
commit fdd8cb619a

View file

@ -235,6 +235,7 @@ const UserSettings = {
if (res.status === 'success') { if (res.status === 'success') {
this.changedPassword = true this.changedPassword = true
this.changePasswordError = false this.changePasswordError = false
this.logout()
} else { } else {
this.changedPassword = false this.changedPassword = false
this.changePasswordError = res.error this.changePasswordError = res.error
@ -243,6 +244,10 @@ const UserSettings = {
}, },
activateTab (tabName) { activateTab (tabName) {
this.activeTab = tabName this.activeTab = tabName
},
logout () {
this.$store.dispatch('logout')
this.$router.replace('/')
} }
} }
} }