LibreChat/api/server
Marco Beretta a338decf90
✉️ fix: email address encoding in verification link (#3085)
Related to #3084

Implements URL encoding for email addresses in verification links and decodes them upon verification.

- **Encode email addresses** in `sendVerificationEmail` and `resendVerificationEmail` functions using `encodeURIComponent` to ensure special characters like `+` are correctly handled in the verification link.
- **Decode email addresses** in the `verifyEmail` function using `decodeURIComponent` to accurately retrieve and validate the email address from the verification link against the database.


---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/danny-avila/LibreChat/issues/3084?shareId=9c32df30-4156-4082-a3eb-fff54eaba5b3).
2024-06-16 16:05:53 -04:00
..
controllers 📧 fix: Cancel Signup if Email Issuance Fails (#3010) 2024-06-08 06:51:29 -04:00
middleware 📧 feat: email verification (#2344) 2024-06-07 15:06:47 -04:00
routes 🚀 feat: Add Option to Disable Shared Links (#2986) 2024-06-15 11:12:03 -04:00
services ✉️ fix: email address encoding in verification link (#3085) 2024-06-16 16:05:53 -04:00
utils ℹ️ refactor: Remove use of Agenda for Conversation Imports (#3024) 2024-06-10 13:00:34 -04:00
index.js 📧 fix: Cancel Signup if Email Issuance Fails (#3010) 2024-06-08 06:51:29 -04:00
socialLogins.js 🔊 fix(tts): NotAllowedError (mobile/safari), Unsupported MediaSource type (firefox), Hide Audio Element (#2854) 2024-05-24 12:18:11 -04:00