From: charleswrayjr Date: Sat, 13 Sep 2025 14:11:11 +0000 (-0500) Subject: Adding auth, media, and messaging. X-Git-Url: https://git.phasecustomsoft.com/static/git-favicon.png?a=commitdiff_plain;h=c9ddfbba28a0c6e6dd7f87d15444ec08faec9ee7;p=phs-api.git Adding auth, media, and messaging. --- diff --git a/src/controllers/auth.controller.js b/src/controllers/auth.controller.js index f676b30..080de3b 100644 --- a/src/controllers/auth.controller.js +++ b/src/controllers/auth.controller.js @@ -82,7 +82,7 @@ module.exports = { } logger.warn(user); logger.warn(password); - const isValid = await user.comparePassword(password, auth); + const isValid = await user.comparePassword(password); if (!isValid) { await user.failLogin(); return res.status(401).send({ success: false, user: null, token: null });