From 48422c595b7bf141acd17765d08bda725e57d388 Mon Sep 17 00:00:00 2001 From: David-TP Date: Mon, 14 Oct 2024 07:05:14 -0400 Subject: [PATCH] reset password URL changed --- src/auth/authController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/authController.js b/src/auth/authController.js index c7a13c5..e233c54 100644 --- a/src/auth/authController.js +++ b/src/auth/authController.js @@ -98,7 +98,7 @@ const sendResetEmail = async (req, res) => { user.resetPasswordExpires = Date.now() + 3600000; // 1 hora await user.save(); - const resetURL = `https://web-api-intcx.onrender.com?reset-password?token=${hashedToken}`; + const resetURL = `url https://web-api-intcx.onrender.com/reset-password/token=${resetToken}`; await sendPasswordResetEmail(user.email, resetURL); return res.status(200).json({ message: 'Password reset email sent successfully' });