dvjsharma / Drawn2Shoe

Drawn2Shoe is a user-friendly e-commerce platform. It offers customers the ability to purchase and personalize their shoes. The platform's intuitive interface ensures seamless navigation and usability across a variety of devices.
MIT License
27 stars 42 forks source link

fix: Implemented Account verification , Email validation. issue:#152 #155

Closed kaali001 closed 3 months ago

kaali001 commented 3 months ago

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:

4. Frontend Integration:

image image image

How to test

fix an issue already created in the repository-

152

dvjsharma commented 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.