mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-09-06 11:41:16 +00:00
Updated dashboard.py
and DashboardConfigurationStore.js
- Added `session.clear()` to clean the session specific to each login session - Clear all cookie with the `signout` request and also clear again (just in case) in the frontend code.
This commit is contained in:
@@ -63,8 +63,9 @@ export const DashboardConfigurationStore = defineStore('DashboardConfigurationSt
|
||||
});
|
||||
},
|
||||
async signOut(){
|
||||
await fetchGet("/api/signout", {}, (res) => {
|
||||
await fetchGet("/api/signout", {}, () => {
|
||||
this.removeActiveCrossServer();
|
||||
document.cookie = '';
|
||||
this.$router.go('/signin')
|
||||
});
|
||||
},
|
||||
|
Reference in New Issue
Block a user