You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user’s story
As the owner of the app, I want all of the subscribed users to use a valid email address, so I can make sure that the subscriptions are from the real users. A working email address is crucial for common tasks, such as resetting passwords and account management.
Technical implementation plan
Backend
1- Update the user model: Add isVerified attribute to user model.
2- Create token Verification Model which consists user id and token and set token to expire after 12 hours.
3. Update api/signup to send verification email to user if the user is registered successfully.
create and save the token which is going to be used for verification
use npm package nodemailer and sendgrid api for sending email
as mail text, create a link which redirects the user to /confirmation page with the token.
Update api/login to check if the user is verified.
Create api/confirmation to set user models isVerified field to true.
Create api/resend to send a new confirmation email to user in case the token is expired.
Update signup page to add confirm password field to the form.
Frontend
Update signup page to check if verification email is sent successfully and if so display a message to instruct the user to check his email for confirmation link.
Update login page to check if the user is verified and if not redirect the user to /resend page.
Create /confirmation page where the user is going to be redirected to when he clicked the confirmation link. Within this page
if the user is verified, create a link which redirects to /login page
if the token expired, create a link to redirect the user to the /resend page to send a new confirmation email.
show the error messages
Create /resend page to send new confirmation mail to user in case the confirmation token is expired.
Update signup page to validate password with the help of npm package “password-validator”. Set rules for the password such as it must contain at least 1 uppercase, 1 lowercase, 1 digit, 1 symbol, no spaces with min(8) number of characters.
The text was updated successfully, but these errors were encountered:
The user’s story
As the owner of the app, I want all of the subscribed users to use a valid email address, so I can make sure that the subscriptions are from the real users. A working email address is crucial for common tasks, such as resetting passwords and account management.
Technical implementation plan
1- Update the user model: Add isVerified attribute to user model.
2- Create token Verification Model which consists user id and token and set token to expire after 12 hours.
3. Update api/signup to send verification email to user if the user is registered successfully.
The text was updated successfully, but these errors were encountered: