overleaf/services/web/modules
Antoine Clausse 25d8e053be [web] Update revokeAllUserSessions and rename it to removeSessionsFromRedis (#18360)
* Fix `revokeAllUserSessions` call in `_cleanupUser`

The user object should be passed, not the _id

* Change `revokeAllUserSessions` signature, take `req` and `stayLoggedIn` arguments

* Update uses of `revokeAllUserSessions`

* Fix promisified `revokeAllUserSessions` args

* Update tests

* Destroy or Regenerate the session in the end of `revokeAllUserSessions`

Per https://github.com/overleaf/internal/issues/17036#issuecomment-1938398570

* Revert "Destroy or Regenerate the session in the end of `revokeAllUserSessions`"

This reverts commit fe30734dbe45b27d2931d2e43a711d591bb85787.

* Rename `revokeAllUserSessions` to `removeSessionsFromRedis`

* Fixup tests

* Fix: add optional chaining in `req.sessionID` (!!)

GitOrigin-RevId: d41676bf00f463230af495e09c65fb9ee521f49f
2024-05-20 08:04:12 +00:00
..
history-v1 Merge pull request #16346 from overleaf/msm-remove-underscore 2024-01-09 09:03:58 +00:00
launchpad [web] Add #main-content to some pug pages (fix skip-to-content links) (#18050) 2024-04-24 08:04:43 +00:00
server-ce-scripts [web] Update revokeAllUserSessions and rename it to removeSessionsFromRedis (#18360) 2024-05-20 08:04:12 +00:00
user-activate [web] Add #main-content to some pug pages (fix skip-to-content links) (#18050) 2024-04-24 08:04:43 +00:00
modules-ide.js Merge pull request #15120 from overleaf/jpa-mj-val-loader 2023-10-16 08:04:12 +00:00
modules-main.js Merge pull request #15120 from overleaf/jpa-mj-val-loader 2023-10-16 08:04:12 +00:00