From f28e69a9ce05ef9201f2fa5d84ece6bac4309f21 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Wed, 3 Sep 2025 07:11:25 +0000 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')