fuck
This commit is contained in:
parent
aa0309cbe6
commit
854e9f5063
@ -47,6 +47,7 @@ const comparePassword = async (password = '', hash = '') => {
|
|||||||
if (typeof hash !== 'string' || hash.trim().length === 0) return false
|
if (typeof hash !== 'string' || hash.trim().length === 0) return false
|
||||||
let check = await new Promise((resolve, reject) => {
|
let check = await new Promise((resolve, reject) => {
|
||||||
bcrypt.compare(password, hash, (err, res) => {
|
bcrypt.compare(password, hash, (err, res) => {
|
||||||
|
console.log('pass match :::: ', err, res)
|
||||||
if (err) {
|
if (err) {
|
||||||
resolve(false)
|
resolve(false)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user