mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Website: Clear personalization on logout (#18630)
This commit is contained in:
parent
9d8372c192
commit
c3f77aa116
1 changed files with 3 additions and 0 deletions
3
website/api/controllers/account/logout.js
vendored
3
website/api/controllers/account/logout.js
vendored
|
|
@ -37,6 +37,9 @@ actually logged in. (If they weren't, then this action is just a no-op.)`,
|
|||
// Clear the `userId` property from this session.
|
||||
delete this.req.session.userId;
|
||||
|
||||
// Clear personalization from liu're session.
|
||||
delete this.req.session.primaryBuyingSituation;
|
||||
|
||||
// Then finish up, sending an appropriate response.
|
||||
// > Under the covers, this persists the now-logged-out session back
|
||||
// > to the underlying session store.
|
||||
|
|
|
|||
Loading…
Reference in a new issue