Merge branch 'master' into release

This commit is contained in:
Jay 2018-08-23 20:31:26 +08:00
commit b7597ae414
1 changed files with 1 additions and 0 deletions

View File

@ -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