Commit 7075806c authored by janis.streib's avatar janis.streib 🦉
Browse files

FIX: logout for SimpleKITUsers

parent a8bbd23b
Pipeline #94804 passed with stages
in 6 minutes and 52 seconds
...@@ -87,7 +87,12 @@ ...@@ -87,7 +87,12 @@
}, },
methods: { methods: {
async logout() { async logout() {
await LoginService.logout(this.$store.state.token.pk) if(this.$store.token == null) {
await LoginService.logout(null)
}
else {
await LoginService.logout(this.$store.state.token.pk || null)
}
this.$store.commit('logout') this.$store.commit('logout')
await this.$router.push('/login') await this.$router.push('/login')
}, },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment