This commit is contained in:
unknown 2026-01-21 10:52:24 +05:30
parent 3930ba0ec6
commit c543af3b96

View File

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