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