YaraElmalah / voyageit-node-mvc

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

Open sweep-ai[bot] opened 1 year ago

sweep-ai[bot] commented 1 year ago

Description

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

Fixes #3.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/add-forgot-password-functionality

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.