testcases c1
This commit is contained in:
parent
6a91f34b91
commit
4f582db699
@ -177,15 +177,14 @@ exports.login = async (req, res) => {
|
|||||||
user.status = "Active"
|
user.status = "Active"
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (user.status === "Pending" && !hospitalData[0].publicSignupEnabled) {
|
if (user.status === "Pending" && !hospitalData[0].publicSignupEnabled) {
|
||||||
// return res.status(404).json({ message: "Your Account is Under Review" });
|
return res.status(404).json({ message: "Your Account is Under Review" });
|
||||||
|
|
||||||
// }
|
}
|
||||||
|
|
||||||
// if (user.status === "Inactive" && !hospitalData[0].publicSignupEnabled) {
|
if (user.status === "Inactive" && !hospitalData[0].publicSignupEnabled) {
|
||||||
// return res.status(404).json({ message: "Contact admin your account is not approved" });
|
return res.status(404).json({ message: "Contact admin your account is not approved" });
|
||||||
|
}
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
// Validate the password
|
// Validate the password
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user