mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-16 10:18:48 +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;
|
return;
|
||||||
})
|
})
|
||||||
.catch(function(err) {
|
.catch(function(err) {
|
||||||
if (!doc.exists) {
|
// FIX: doc variable is out of scope
|
||||||
return res
|
// if (!doc.exists) {
|
||||||
.status(403)
|
// return res
|
||||||
.json({ general: "Invalid credentials. Please try again." });
|
// .status(403)
|
||||||
}
|
// .json({ general: "Invalid credentials. Please try again." });
|
||||||
|
// }
|
||||||
|
console.log(err);
|
||||||
return res.status(500).send(err);
|
return res.status(500).send(err);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user