This issue focuses on implementing the student email verification process for the Comrade Marketplace backend. The goal is to ensure that only users with valid student email addresses can register and access the platform.
Tasks
Design the Email Verification Workflow
Determine the flow for the email verification process, including the following steps:
User enters their email address during registration
A unique verification code is generated and sent to the user's email
User enters the verification code to confirm their identity
User's account is activated upon successful verification
Implement the Email Verification Backend Logic
Create the necessary views, models, and logic to handle the email verification process
Generate a unique verification code for each user and store it securely
Integrate with an email service (e.g., SendGrid, Mailgun) to send the verification email to the user
Validate the user-entered verification code and update the user's account status accordingly
Handle Account Activation and Deactivation
When a user successfully verifies their email, their account should be activated and they should be able to access the platform
If the email verification process fails or the verification code is invalid, the user's account should remain deactivated
Implement the logic to handle the activation and deactivation of user accounts based on the email verification status
Provide Error Handling and Feedback
Ensure the email verification process provides clear and user-friendly error messages in case of any issues
Implement mechanisms to handle scenarios such as expired verification codes, multiple failed attempts, and resending the verification email
Acceptance Criteria
The email verification workflow is designed and implemented correctly on the backend
Users can successfully verify their email addresses and have their accounts activated
The email verification process is secure, reliable, and provides a good user experience
Error handling and feedback mechanisms are in place to guide users through the verification process
Dependencies
Implement the User and CustomUser models
Implement the user registration and login functionality
Resources
Django email sending documentation
Best practices for email verification in web applications
Third-party email service provider documentation (e.g., SendGrid, Mailgun)
(Backend)
Description
This issue focuses on implementing the student email verification process for the Comrade Marketplace backend. The goal is to ensure that only users with valid student email addresses can register and access the platform.
Tasks
Design the Email Verification Workflow
Implement the Email Verification Backend Logic
Handle Account Activation and Deactivation
Provide Error Handling and Feedback
Acceptance Criteria
Dependencies
User
andCustomUser
modelsResources