Closed dongtong closed 6 years ago
me too.
Hi @dongtong , Can you please give a sample passwords which fails. Because following example does gives me 'true' for the comparison.
'use strict';
const bcrypt = require('bcryptjs');
const salt = bcrypt.genSaltSync(10);
const hash = bcrypt.hashSync('B4c0/\/', salt);
bcrypt.compare("B4c0/\/", hash, function(err, res) {
console.log('err----> ',err);
console.log('res----> ',res);
});
@dongtong is this still an issue?
Hi
the above code, no matter what correct or incorrect password, the passwordMatched is always false