mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-15 18:08:46 +00:00
Comment out some lines in users.js that were throwing errors
This commit is contained in:
parent
445687cc54
commit
731e01c552
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user