Skip to content

Commit

Permalink
Update auth.js
Browse files Browse the repository at this point in the history
  • Loading branch information
devarshishimpi committed Oct 15, 2022
1 parent 9681656 commit 7b53e0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/routes/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,8 @@ router.delete('/deleteaccount', fetchuser, async (req, res) => {

const options = {
from: process.env.outlookEmail,
to: req.body.email,
subject: 'Reset Password for Noteslify',
to: theUser.email,
subject: 'Delete Noteslify Account',
html: `You are receiving this email because you(maybe someone else) wanted to delete your account permanently.\nIf it was not you, ignore this email.If you requested to delete your account, please go to the following link: <a href='http://localhost:3000/deleteacocunt/${theUser.email}/${daToken}'>Click Here</a>`
};

Expand Down

0 comments on commit 7b53e0f

Please sign in to comment.