This commit is contained in:
unknown 2026-01-21 10:49:02 +05:30
parent a0218463c0
commit 3930ba0ec6

View File

@ -1309,17 +1309,17 @@ exports.verifyOTPForLogin = async (req, res) => {
try { try {
let { registered_email, otp } = req.body; let { registered_email, otp } = req.body;
const envDb = process.env.DB_NAME?.toLowerCase(); // const envDb = process.env.DB_NAME?.toLowerCase();
const isBypassEnv = envDb === "ipidev" || envDb === "ipiuat"; // const isBypassEnv = envDb === "ipidev" || envDb === "ipiuat";
//DEV / UAT OTP BYPASS // //DEV / UAT OTP BYPASS
if (isBypassEnv && otp === "123456") { // if (isBypassEnv && otp === "123456") {
return res.status(200).json({ // return res.status(200).json({
status: "success", // status: "success",
title: "Verified", // title: "Verified",
message: "You're signed in. Redirecting to your dashboard..." // message: "You're signed in. Redirecting to your dashboard..."
}); // });
} // }
if (!registered_email || !otp) { if (!registered_email || !otp) {
return res.status(400).json({ return res.status(400).json({