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