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

index 0d19c8d74986b484387534fd68536b020e2fec19..13e16fa75b4520278ac6134c41bb4ac12b9ecfdc 100644 (file)
@@ -146,10 +146,10 @@ class User extends Model {
   }
 
   async comparePassword(password, auth) {
-    console.log(auth);
-    console.log(password);
-    console.log(auth.password);
-    console.log(bcrypt.compareSync(password, auth.password));
+    logger.warn(auth);
+    logger.warn(password);
+    logger.warn(auth.password);
+    logger.warn(bcrypt.compareSync(password, auth.password));
     return auth ? bcrypt.compareSync(password, auth.password) : false;
   }