We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I made the following function:
var encryptPassword = function(password, next) { bcrypt.gen_salt(function(err, salt) { if (err) return next(err); bcrypt.encrypt(password, salt, function(err, password_crypt) { if (err) return next(err); return next(null, password_crypt); }); }); };
When using it I get:
Error: No callback supplied.
Yes I did. I supplied it right there. What I did not supply were the rounds nor the seed_length because the readme said that both are optional.
The text was updated successfully, but these errors were encountered:
Suspect I goofed that. ATM supply the rounds and it should work.
I'll fix the error messaging.
Thanks!
Sorry, something went wrong.
c4b6318
Fixed and available in 0.3.2.
Thanks for finding this, not sure how I missed this to begin with.
No branches or pull requests
I made the following function:
When using it I get:
Yes I did. I supplied it right there. What I did not supply were the rounds nor the seed_length because the readme said that both are optional.
The text was updated successfully, but these errors were encountered: