From b276999253c522fb8126b3eddb58e5185308a719 Mon Sep 17 00:00:00 2001 From: charleswrayjr Date: Sat, 13 Sep 2025 03:32:32 -0500 Subject: [PATCH] Adding auth, media, and messaging. --- src/models/user.model.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/models/user.model.js b/src/models/user.model.js index 5312ae4..f302132 100644 --- a/src/models/user.model.js +++ b/src/models/user.model.js @@ -148,6 +148,10 @@ class User extends Model { async comparePassword(password) { const auth = await db.authentication.find_by_user_id(this.id); + console.log(auth); + console.log(password); + console.log(auth.password); + console.log(bcrypt.compareSync(password, auth.password)); return auth ? bcrypt.compareSync(password, auth.password) : false; } -- 2.43.0