mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix(logout): clean user data when logout EE-6368 (#10690)
This commit is contained in:
parent
2fe965942a
commit
140ac5d17c
1 changed files with 5 additions and 0 deletions
|
@ -51,6 +51,7 @@ angular.module('portainer.app').factory('Authentication', [
|
|||
LocalStorage.cleanAuthData();
|
||||
LocalStorage.storeLoginStateUUID('');
|
||||
tryAutoLoginExtension();
|
||||
cleanUserData();
|
||||
}
|
||||
|
||||
function logout() {
|
||||
|
@ -87,6 +88,10 @@ angular.module('portainer.app').factory('Authentication', [
|
|||
return user;
|
||||
}
|
||||
|
||||
function cleanUserData() {
|
||||
user = {};
|
||||
}
|
||||
|
||||
async function loadUserData() {
|
||||
const userData = await getCurrentUser();
|
||||
user.username = userData.Username;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue