From 4f582db699d195a62e8d17a714a3a6ad7ae84156 Mon Sep 17 00:00:00 2001 From: rohitgir-879 Date: Thu, 12 Jun 2025 22:30:59 +0530 Subject: [PATCH] testcases c1 --- src/controllers/appUserController.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/controllers/appUserController.js b/src/controllers/appUserController.js index 628cb6b..d160bac 100644 --- a/src/controllers/appUserController.js +++ b/src/controllers/appUserController.js @@ -177,15 +177,14 @@ exports.login = async (req, res) => { user.status = "Active" } - // if (user.status === "Pending" && !hospitalData[0].publicSignupEnabled) { - // return res.status(404).json({ message: "Your Account is Under Review" }); + if (user.status === "Pending" && !hospitalData[0].publicSignupEnabled) { + return res.status(404).json({ message: "Your Account is Under Review" }); - // } + } - // if (user.status === "Inactive" && !hospitalData[0].publicSignupEnabled) { - // return res.status(404).json({ message: "Contact admin your account is not approved" }); - - // } + if (user.status === "Inactive" && !hospitalData[0].publicSignupEnabled) { + return res.status(404).json({ message: "Contact admin your account is not approved" }); + } // Validate the password