Innovateninjas / Paws-frontend

A fast responsive webapp that allows you to report injured stray animals to the nearest NGOs.
https://pawss.vercel.app
GNU General Public License v3.0
64 stars 101 forks source link

Implement Email Verification System for User & NGO Registration #270

Open codewarnab opened 6 months ago

codewarnab commented 6 months ago

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 )

Links:

RohanGlitched commented 6 months ago

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

codewarnab commented 6 months ago

@RohanGlitched Assigned! Best of Luck

AMISH-KHAN commented 6 months ago

@codewarnab can you assigned this issue to me?

codewarnab commented 6 months ago

@codewarnab can you assigned this issue to me?

this issue is already assigned

rishicds commented 6 months ago

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

RohanGlitched commented 6 months ago

working on it

codewarnab commented 6 months ago

@RohanGlitched give update , share your approach asap

atharvarekhawar commented 6 months ago

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

codewarnab commented 6 months ago

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

ok

atharvarekhawar commented 6 months ago

@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.

codewarnab commented 6 months ago

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