mirror of
https://git.youjo.love/youjo/youjo-fe.git
synced 2024-11-20 13:59:55 +01:00
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:
commit
fdd8cb619a
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue