Welcome to MyClothes, where creativity meets fashion! This application provides a platform for designers to showcase their clothing products, receive feedback through comments and likes, engage in real-time chat, and even get hired by clients who love their work.
MIT License
0
stars
0
forks
source link
Implement Email Verification during User Registration #23
As part of our user registration process, we need to implement an email verification step to ensure that users provide a valid email address and that they have access to it.
Tasks:
Generate a unique token for each new user during registration.
Temporarily store the user's data and the token in a cache or a temporary collection in the database.
Send an email to the user with a verification link. The link should include the token as a query parameter.
When the user clicks the verification link, validate the token, move the user's data from the temporary storage to the actual user collection, and mark the user's email as verified.
If the user does not click the verification link within 15 minutes, the token should expire and the user's data should be removed from the temporary storage.
Acceptance Criteria:
A user should not be able to complete registration without verifying their email.
A user should receive a clear message if their verification link is invalid or expired.
The system should handle the scenario where the email sending fails.
Estimated Time:
5 days
Dependencies:
Nodemailer for sending emails, Mongo for temporary storage(Implement logic like in Redis) and using uuid for unique number stored in TempMemory in Mongo
They may be a room for improvements in emailServices.js. For now I will leave it as it is, in the future can be made a better html for the client and enhancement for error handling
As part of our user registration process, we need to implement an email verification step to ensure that users provide a valid email address and that they have access to it.
Tasks:
Acceptance Criteria:
A user should not be able to complete registration without verifying their email. A user should receive a clear message if their verification link is invalid or expired. The system should handle the scenario where the email sending fails.
Estimated Time:
Dependencies: