From b0a1bb72dc43d05c0e9d8284992423f0590a6842 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Tue, 2 Sep 2025 19:11:25 -0600 Subject: [PATCH] Cleaner logout. --- frontend/src/stores/auth.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/stores/auth.js b/frontend/src/stores/auth.js index 76c8782..57f086a 100644 --- a/frontend/src/stores/auth.js +++ b/frontend/src/stores/auth.js @@ -130,8 +130,7 @@ export const useAuthStore = defineStore('auth', { async logout() { try { await fetch('/auth/api/logout', {method: 'POST'}) - this.userInfo = null - if (this.restrictedMode) location.reload() + location.reload() } catch (error) { console.error('Logout error:', error) this.showMessage(error.message, 'error')