Email verification fails when multiple users register #9460
Replies: 2 comments 2 replies
-
Hi! Thanks for the detailed report. I've investigated and this is actually working as intended. What's happening: Email verification tokens expire after 15 minutes for security. MongoDB automatically deletes expired tokens. Looking at each user: mail2 ✅ Success
mail1 ❌ Token Expired
mail3 ❌ Never Verified
The tokens weren't cleared when mail2 verified. Instead:
|
Beta Was this translation helpful? Give feedback.
2 replies
-
Closed by #9477 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
I observed that the email verification fails when multiple users attempt to register within a short period of time.
During my testing, the following occurred: Multiple tokens were generated in the tokens table. Once one user was successfully validated, the entire table was cleared, which caused the verification attempts of the other users—whose tokens were also stored in the table—to fail.
Version Information
ghcr.io/danny-avila/librechat-dev latest 8d938efaacda 2 weeks ago 1.56GB
Steps to Reproduce
What browsers are you seeing the problem on?
No response
Relevant log output
Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions