overleaf/services/web/modules/server-ce-scripts/scripts
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
..
change-compile-timeout.js Merge pull request #16186 from overleaf/mj-mongo-object-id 2023-12-19 09:04:02 +00:00
check-mongodb.js Merge pull request #17327 from overleaf/em-mongo-version-startup-check 2024-02-28 10:24:06 +00:00
check-redis.js Merge pull request #4315 from overleaf/jpa-import-ce-scripts 2021-07-14 12:41:10 +00:00
create-user.js Merge pull request #5051 from overleaf/ab-web-mono-analytics-id 2021-09-13 08:03:14 +00:00
delete-user.js Merge pull request #16854 from overleaf/jpa-overleaf-integration-core-tests 2024-02-05 09:04:05 +00:00
migrate-user-emails.js [web] Update revokeAllUserSessions and rename it to removeSessionsFromRedis (#18360) 2024-05-20 08:04:12 +00:00
rename-tag.js Merge pull request #9339 from overleaf/jpa-script-rename-tag 2022-08-24 08:04:19 +00:00
upgrade-user-features.js Merge pull request #14383 from overleaf/jpa-server-pro-feature-refresh-migration 2023-08-18 08:05:53 +00:00