same problem bCrypt



  • Re: bCrypt problem

    Hello,
    I use bcrypt-nodejs and get the same error
    bcrypt-nodejs\bCrypt.js:621
    throw "No callback function was given."
    ^
    No callback function was given.

    This problem have some solution


  • Admin

    What version of the bcrypt package do you have installed? What happens when you try to install it again?



  • version 0.0.3,
    Well this problem was solved, in the function i was written 3 params and are 4 and the last is the callback . I have other problems now , i get the hash but when the value set to pasword not work, chage inside the function but out is the same value. Thanks
    bcrypt.hash(user.password, usersalt, null, function (err, hash) {
    if (err) {
    return next(err);
    }

               user.password = hash
            });

Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.