Comment out some lines in users.js that were throwing errors

This commit is contained in:
Clayton Wilson 2019-11-27 21:51:16 -05:00
parent 445687cc54
commit 731e01c552

View File

@ -161,11 +161,13 @@ exports.login = (req, res) => {
return;
})
.catch(function(err) {
if (!doc.exists) {
return res
.status(403)
.json({ general: "Invalid credentials. Please try again." });
}
// FIX: doc variable is out of scope
// if (!doc.exists) {
// return res
// .status(403)
// .json({ general: "Invalid credentials. Please try again." });
// }
console.log(err);
return res.status(500).send(err);
});
}