Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the student email verification process #35

Open
wekesa360 opened this issue Apr 20, 2024 · 0 comments
Open

Implement the student email verification process #35

wekesa360 opened this issue Apr 20, 2024 · 0 comments
Labels
backend For backend development feature This issue adds a new functionality or feature python Pull requests that update Python code

Comments

@wekesa360
Copy link
Member

wekesa360 commented Apr 20, 2024

(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

  • 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)
@wekesa360 wekesa360 converted this from a draft issue Apr 20, 2024
@wekesa360 wekesa360 added python Pull requests that update Python code backend For backend development feature This issue adds a new functionality or feature labels Apr 20, 2024
@wekesa360 wekesa360 moved this from Backlog to Todo in Comrade MarketPlace Project Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend For backend development feature This issue adds a new functionality or feature python Pull requests that update Python code
Projects
Status: Todo
Development

No branches or pull requests

1 participant