]> PHS Git Server - phs-api.git/commitdiff
Adding auth, media, and messaging.
authorcharleswrayjr <charleswrayjr@gmail.com>
Sat, 13 Sep 2025 14:11:11 +0000 (09:11 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Sat, 13 Sep 2025 14:11:11 +0000 (09:11 -0500)
src/controllers/auth.controller.js

index f676b302e2106edcc909d002388eed05ee40eb73..080de3b8b0fb73cc9a4947ba68c65d2a68c2e9ac 100644 (file)
@@ -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 });