Closed kaali001 closed 3 months ago
A small suggestion- instead creating a new tempUser
table and migrating data upon successful verification, you can add a new field isVerified
in current main user table to handle the scenario. It will reduce database calls and will be more modular.
Description
This PR implements email validation functionality in our application. The feature includes temporary user storage, token-based email verification, and user redirection upon successful verification. Below are the key details of the implementation:
Changes
1. Temporary User Storage:
2. Token Generation and Email Sending:
3. Email Verification Endpoint:
(/api/users/verify-email)
is created to handle the verification process.4. Frontend Integration:
VerifyEmail
component fetches the token and email from the URL and calls the verification API.How to test
fix an issue already created in the repository-
152