diff --git a/controllers/handelUser.js b/controllers/handelUser.js index fb7d48e..aed6e53 100644 --- a/controllers/handelUser.js +++ b/controllers/handelUser.js @@ -204,7 +204,6 @@ const uploadImage = async (req, res) => { const forgotPassword = async (req, res) => { const { email } = req.body; - console.log(process.env.EMAIL_USER, process.env.EMAIL_PASS); if (!email) { return res.status(400).json({ message: "Email is required" }); @@ -237,11 +236,29 @@ const uploadImage = async (req, res) => { to: user.email, from: 'gamestorrent2015@gmail.com', subject: 'UMS Password Reset', - text: `You are receiving this because you have requested to reset the password for your account.\n\n - Please click on the following link, or paste it into your browser to complete the process:\n\n - ${resetUrl}\n\n - If you did not request this, please ignore this email and your password will remain unchanged.\n - UMS TEAM`, + html: ` +
Dear ${user.name},
++ You are receiving this email because we received a request to reset the password for your account. +
++ To complete the process, please click on the link below or copy and paste it into your browser: +
++ ${resetUrl} +
++ If you did not request this change, please ignore this email. Your password will remain unchanged. +
+Thank you,
+UMS Team
+