blah fixed

This commit is contained in:
newtbot
2023-12-28 20:57:39 +08:00
parent 56c5a16b29
commit 840e6830b8
3 changed files with 2346 additions and 1428 deletions

View File

@ -6,8 +6,8 @@ const bcrypt = require("bcrypt");
const crypto = require("crypto");
const nodemailer = require("nodemailer");
const transporter = require("./modules/nodeMailer");
const { mysqlConfig , connection } = require("./modules/mysql");
const { transporter } = require("./modules/nodeMailer");
const { connection } = require("./modules/mysql");
const app = express();
app.use(bodyParser.urlencoded({ extended: true }));
@ -447,7 +447,6 @@ app.post("/forgot-password", (req, res) => {
subject: "Password Reset",
text: `Click on the following link to reset your password: ${resetLink}`,
};
transporter.sendMail(mailOptions, (emailError, info) => {
if (emailError) {
console.error("Error sending email:", emailError);