From 3f7ba82e6a8fd757524aef6d40f45bf033a5e6bf Mon Sep 17 00:00:00 2001 From: Igor Serebryany Date: Fri, 6 Oct 2023 14:33:19 -0700 Subject: [PATCH] fix client-side logout currently, after logout, we still leave the same user set in the store. lets clear it out so we don't end up still logged in --- client/pages/account.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/pages/account.vue b/client/pages/account.vue index c582c2640..18b5cdecf 100644 --- a/client/pages/account.vue +++ b/client/pages/account.vue @@ -85,6 +85,7 @@ export default { if (localStorage.getItem('token')) { localStorage.removeItem('token') } + this.$store.commit('user/setUser', null) this.$store.commit('libraries/setUserPlaylists', []) this.$store.commit('libraries/setCollections', []) this.$router.push('/login') @@ -127,4 +128,4 @@ export default { this.selectedLanguage = this.$languageCodes.current } } - \ No newline at end of file +