From 854e9f5063b2e79f26f7f4a9b443f2442b244870 Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 23 Aug 2018 20:31:11 +0800 Subject: [PATCH] fuck --- libs/tools/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/tools/index.js b/libs/tools/index.js index 7c7a322..363d46e 100644 --- a/libs/tools/index.js +++ b/libs/tools/index.js @@ -47,6 +47,7 @@ const comparePassword = async (password = '', hash = '') => { if (typeof hash !== 'string' || hash.trim().length === 0) return false let check = await new Promise((resolve, reject) => { bcrypt.compare(password, hash, (err, res) => { + console.log('pass match :::: ', err, res) if (err) { resolve(false) return