Paws-frontend icon indicating copy to clipboard operation
Paws-frontend copied to clipboard

Implement Email Verification System for User & NGO Registration

Open codewarnab opened this issue 1 year ago • 11 comments
trafficstars

Currently, the user registration process allows users to enter any email without verification. This poses a security risk and can lead to misuse of the platform. To enhance security and ensure valid user accounts, we need to implement an email verification system.

Frontend Changes:

  1. UI Modifications:

    • Integrate a new step in the registration process for email verification.
    • Add a field for users to input their email during registration.
    • Display a message prompting users to check their email for the verification code.
  2. OTP Input:

    • Design an interface to input the OTP sent to the user's email.
    • Validate the OTP entered by the user against the one sent to their email.
  3. Error Handling:

    • Provide appropriate error messages for invalid email addresses or failed OTP verification.

Backend Changes:

  1. Endpoint Creation:

    • Develop a backend endpoint to handle email verification requests.
    • Generate a unique OTP for each registration request and associate it with the user's email.
    • Validate the OTP received from the frontend against the stored OTP.
  2. Email Sending:

    • Integrate a service to send emails with OTPs to users' email addresses.
    • Ensure email templates are clear and informative.
  3. Database Updates:

    • Update the database schema to store the OTP and its expiration time.

Additional Details: ( Can be created as separate issue discuss below )

  • Ensure OTPs are valid only for a limited time to enhance security.
  • Implement retry mechanisms for OTP verification to accommodate user errors.
  • Provide a user-friendly interface with clear instructions for the verification process.
  • Test the system thoroughly to ensure reliability and security.

Links:

codewarnab avatar May 11 '24 05:05 codewarnab

@codewarnab I would love to resolve this issue. Can you please assign me this issue.

RohanGlitched avatar May 11 '24 05:05 RohanGlitched

@RohanGlitched Assigned! Best of Luck

codewarnab avatar May 11 '24 05:05 codewarnab

@codewarnab can you assigned this issue to me?

AMISH-KHAN avatar May 11 '24 17:05 AMISH-KHAN

@codewarnab can you assigned this issue to me?

this issue is already assigned

codewarnab avatar May 12 '24 07:05 codewarnab

@RohanGlitched Hi, what's the status on this issue?

rishicds avatar May 16 '24 08:05 rishicds

working on it

RohanGlitched avatar May 16 '24 12:05 RohanGlitched

@RohanGlitched give update , share your approach asap

codewarnab avatar May 19 '24 06:05 codewarnab

hey @codewarnab , I would like to contribute to this issue , plz assign this issue to me if no is working on it currently.

atharvarekhawar avatar May 29 '24 14:05 atharvarekhawar

hey @codewarnab , I would like to contribute to this issue , plz assign this issue to me if no is working on it currently.

ok

codewarnab avatar May 29 '24 17:05 codewarnab

@codewarnab can you share the repo link of the backend for this project, I have to make changes to the backend as well.

Also plz tell me what mailing service I should use to send verification mails to user's and Ngo's.

atharvarekhawar avatar May 30 '24 03:05 atharvarekhawar

have you checked this ? its upto you which mailing service to use

codewarnab avatar May 30 '24 04:05 codewarnab