dummyadminotpcode
dummyadminotpcode
// Nodemailer setup
// const transporter = nodemailer.createTransport({
// service: 'gmail',
// auth: {
// user: '[email protected]',
// pass: 'wuve esae ixbx ccvk',
// },
// });
// const mailOptions = {
// from: '[email protected]',
// to: email,
// subject: 'Your OTP Code',
// text: `Your OTP code is ${otp}`,
// };
// try {
// await transporter.sendMail(mailOptions);
// res.status(200).send('OTP sent successfully');
// } catch (error) {
// res.status(500).send('Failed to send OTP');
// }
// });
// if (record) {
// await Otp.deleteOne({ email }); // Clean up the OTP record
// res.status(200).send('OTP verified successfully');
// } else {
// res.status(400).send('Invalid or expired OTP');
// }
// });
// //Admin Login end