From 731e01c5527a560dcae132ff93e5bf995fa91d8a Mon Sep 17 00:00:00 2001 From: Clayton Wilson Date: Wed, 27 Nov 2019 21:51:16 -0500 Subject: [PATCH] Comment out some lines in users.js that were throwing errors --- functions/handlers/users.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/functions/handlers/users.js b/functions/handlers/users.js index 9c13564..7b9a2e0 100644 --- a/functions/handlers/users.js +++ b/functions/handlers/users.js @@ -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); }); }