Skip to content

Commit f6e3766

Browse files
committed
Hotfix Password reset link not working
1 parent b732251 commit f6e3766

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/routes/users.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ router.post("/forgot-password", async (req, res) => {
9797
if (!user) {
9898
return res.status(404).json("User with that email not found");
9999
}
100+
100101
let email = process.env.APP_EMAIL;
101102
let token = jwt.sign({ userId: user._id.toString() }, process.env.JWT_SECRET, { expiresIn: '1h' });
102-
// TODO: Change this to the deployed URL, not localhost
103-
let url = `${FrontendUrl}/password-reset/${token}`;
103+
let url = `${FrontendUrl}password-reset/${token}`;
104104

105105
let mailOptions = {
106106
from: email,

0 commit comments

Comments
 (0)