Skip to content
Snippets Groups Projects
Commit fdd8cb61 authored by lain's avatar lain
Browse files

Merge branch 'logout_on_password_change' into 'develop'

Logout user on password change

Closes #185

See merge request !384
parents 7d12a65b 59b84c2a
No related branches found
No related tags found
No related merge requests found
......@@ -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('/')
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment