Feature: Implement Email Verification System
Description
Add an email verification system to ensure that only verified users can access chat functionality and other protected features.
Requirements
Backend
- Create
POST /auth/send-verification endpoint.
- Generate a secure verification token or OTP.
- Send verification email to the user's registered email address.
- Create
POST /auth/verify-email endpoint.
- Update user verification status upon successful verification.
- Prevent duplicate verification requests for already verified users.
Frontend
- Display verification status in the user profile.
- Add email verification page/UI.
- Show success and error messages during verification.
- Allow users to resend verification emails.
Security Considerations
- Verification tokens should expire after a defined period.
- Prevent abuse through request rate limiting.
- Validate all incoming verification requests.
Expected Outcome
Only verified users should be able to access chat features, improving account security and authenticity.
Feature: Implement Email Verification System
Description
Add an email verification system to ensure that only verified users can access chat functionality and other protected features.
Requirements
Backend
POST /auth/send-verificationendpoint.POST /auth/verify-emailendpoint.Frontend
Security Considerations
Expected Outcome
Only verified users should be able to access chat features, improving account security and authenticity.