This commit is contained in:
newtbot 2023-12-27 17:00:35 +08:00
parent 45747af260
commit b65cc3a9a0
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
const nodemailer = require("nodemailer");
const transporter = nodemailer.createTransport({ const transporter = nodemailer.createTransport({
service: 'gmail', service: 'gmail',
host: 'smtp.gmail.com', host: 'smtp.gmail.com',

View File

@ -622,7 +622,7 @@ app.post("/reset-password", async (req, res) => {
return res return res
.status(404) .status(404)
.json({ .json({
error: "User not found or password not updated. No rows affected.", error: "User not found or password not updated.",
}); });
} }
} }