Reset store state when logging out
This prevents leaking of state that we do not want to share with the next user
This commit is contained in:
@@ -66,6 +66,11 @@ class SessionStore extends Store {
|
||||
cachedPassword: null,
|
||||
});
|
||||
break;
|
||||
case 'on_logged_out':
|
||||
this._state = {
|
||||
cachedPassword: null,
|
||||
};
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user