LibreChat/api
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
..
app v0.7.3 (#3067) 2024-06-15 12:17:10 -04:00
cache 📧 feat: email verification (#2344) 2024-06-07 15:06:47 -04:00
config 🛠️ refactor: Improve Logging and Error Handling in ToolService and useSSE (#2922) 2024-05-30 12:58:43 -04:00
lib 📥 feat: Import Conversations from LibreChat, ChatGPT, Chatbot UI (#2355) 2024-05-02 02:48:26 -04:00
models 👤 fix: Create User with timestamps (#3070) 2024-06-15 10:36:49 -04:00
server ✉️ fix: email address encoding in verification link (#3085) 2024-06-16 16:05:53 -04:00
strategies 👤 fix: Create User with timestamps (#3070) 2024-06-15 10:36:49 -04:00
test 📥 feat: Import Conversations from LibreChat, ChatGPT, Chatbot UI (#2355) 2024-05-02 02:48:26 -04:00
utils 🦙 feat: Add LLama 3 System Context Length (#2938) 2024-05-31 12:16:08 -04:00
jest.config.js fix: Enhance Test Coverage and Fix Compatibility Issues 👷‍♂️ (#1363) 2023-12-15 13:27:13 -05:00
jsconfig.json feat(api): initial Redis support; fix(SearchBar): proper debounce (#1039) 2023-10-11 17:05:47 -04:00
package.json v0.7.3 (#3067) 2024-06-15 12:17:10 -04:00
typedefs.js 📧 feat: email verification (#2344) 2024-06-07 15:06:47 -04:00