mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-16 21:08:17 +00:00
* fix: invalidate the auth user cache after a CLI password reset The reset CLI wrote the new password and credentialsChangedAt with User.updateOne, which bypasses the auth user document cache invalidation the data-schemas user methods perform. With AUTH_USER_CACHE_MODE=on a cached document without the new stamp could keep pre-reset access tokens verifying for up to the cache TTL after the reset. Route the write through updateUser with the shared cache factory, the same wiring config/delete-user.js uses, so the cached entries for the user are deleted as part of the reset. * test: cover CLI password reset token revocation in the mock harness * test: verify CLI reset evicts the shared Redis auth cache * fix: preserve pending account expiry during CLI resets * test: assert pending account verification after CLI reset |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| translations | ||
| add-balance.js | ||
| ban-user.js | ||
| circular-deps.mjs | ||
| connect.js | ||
| create-error-convo.js | ||
| create-user.js | ||
| delete-banner.js | ||
| delete-user.js | ||
| deployed-update.js | ||
| flush-cache.js | ||
| helpers.js | ||
| invite-user.js | ||
| jest.config.js | ||
| jest.setup.logging.cjs | ||
| jest.workers.cjs | ||
| list-balances.js | ||
| list-users.js | ||
| migrate-agent-permissions.js | ||
| migrate-code-file-duplicates.js | ||
| migrate-orphaned-agent-files.js | ||
| migrate-prompt-permissions.js | ||
| migrate-shared-link-permissions.js | ||
| migrate-tenant-indexes.js | ||
| migrate-terms-timestamp.js | ||
| packages.js | ||
| reset-meili-sync.js | ||
| reset-password.js | ||
| reset-terms.js | ||
| set-balance.js | ||
| smart-reinstall.js | ||
| stop-backend.js | ||
| test-subdirectory-setup.sh | ||
| update-banner.js | ||
| update.js | ||
| user-stats.js | ||