Paws-frontend
Paws-frontend copied to clipboard
Implement Email Verification System for User & NGO Registration
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:
-
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.
-
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.
-
Error Handling:
- Provide appropriate error messages for invalid email addresses or failed OTP verification.
Backend Changes:
-
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.
-
Email Sending:
- Integrate a service to send emails with OTPs to users' email addresses.
- Ensure email templates are clear and informative.
-
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:
- Frontend Project: Link to Frontend Repository
- Backend Project: Link to Backend Repository
@codewarnab I would love to resolve this issue. Can you please assign me this issue.
@RohanGlitched Assigned! Best of Luck
@codewarnab can you assigned this issue to me?
@codewarnab can you assigned this issue to me?
this issue is already assigned
@RohanGlitched Hi, what's the status on this issue?
working on it
@RohanGlitched give update , share your approach asap
hey @codewarnab , I would like to contribute to this issue , plz assign this issue to me if no is working on it currently.
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 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.
have you checked this ? its upto you which mailing service to use