The VoyageIt Node.js project is a comprehensive and feature-rich travel management system designed to simplify and enhance the travel experience. With a wide range of functionalities, including sending email, downloading files, login system, booking system, and much more.
0
stars
0
forks
source link
Add forgot password functionality to controllers/authController.js and routes/auth.js #6
This PR adds the forgot password functionality to the controllers/authController.js and routes/auth.js files. It introduces new routes and controller functions to handle the 'forgot password' page. The form submission will generate a unique token, associate it with the user's account, and send an email to the user with a link to reset their password.
Summary of Changes
Added new routes for the 'forgot password' page in routes/auth.js
Added new controller functions in controllers/authController.js to handle the 'forgot password' page
Created a new view views/auth/forgotPassword.pug for the 'forgot password' page
Implemented form submission processing in the postForgotPassword function, including generating a unique token, associating it with the user's account, and sending an email to the user with a reset password link
Fixes #3.
To checkout this PR branch, run the following command in your terminal:
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.
Description
This PR adds the forgot password functionality to the
controllers/authController.js
androutes/auth.js
files. It introduces new routes and controller functions to handle the 'forgot password' page. The form submission will generate a unique token, associate it with the user's account, and send an email to the user with a link to reset their password.Summary of Changes
routes/auth.js
controllers/authController.js
to handle the 'forgot password' pageviews/auth/forgotPassword.pug
for the 'forgot password' pagepostForgotPassword
function, including generating a unique token, associating it with the user's account, and sending an email to the user with a reset password linkFixes #3.
To checkout this PR branch, run the following command in your terminal:
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.