forked from AkkomaGang/akkoma-fe
Logout user on password change
This commit is contained in:
parent
91272dc555
commit
0c3cd05965
1 changed files with 5 additions and 0 deletions
|
@ -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('/')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue