Skip to content

Commit d5494cb

Browse files
committed
clear obj on logout
1 parent 0395144 commit d5494cb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/TopNav.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function TopNav({ isMaintenance, loggedIn = false }) {
5050
s.auth = false;
5151
});
5252
setPersistedUser({ theme });
53+
setInstanceAuths({});
5354
}
5455
navigate('/');
5556
};

src/components/instances/list/CardBackLogin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function CardBackLogin({
8989
...instanceAuths,
9090
[compute_stack_id]: {
9191
user: formData.user,
92-
// pass: login_not_supported ? formData.pass : '',
92+
pass: login_not_supported ? formData.pass : '',
9393
super: result.role.permission.super_user,
9494
structure: result.role.permission.structure_user,
9595
},

0 commit comments

Comments
 (0)