mirror of
https://git.pleroma.social/sjw/pleroma-fe.git
synced 2024-12-24 00:25:04 +01:00
Logout user on password change
This commit is contained in:
parent
91272dc555
commit
0c3cd05965
@ -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('/')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user