testcases c1

This commit is contained in:
rohitgir-879 2025-06-12 22:30:59 +05:30
parent 6a91f34b91
commit 4f582db699

View File

@ -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