From: charleswrayjr Date: Sat, 13 Sep 2025 08:32:32 +0000 (-0500) Subject: Adding auth, media, and messaging. X-Git-Url: https://git.phasecustomsoft.com/static/gitweb.css?a=commitdiff_plain;h=b276999253c522fb8126b3eddb58e5185308a719;p=phs-api.git Adding auth, media, and messaging. --- 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; }