testing
This commit is contained in:
parent
3930ba0ec6
commit
c543af3b96
@ -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({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user