Skip to content
New issue

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

Error: No callback supplied #35

Closed
ryandesign opened this issue Sep 19, 2011 · 2 comments
Closed

Error: No callback supplied #35

ryandesign opened this issue Sep 19, 2011 · 2 comments

Comments

@ryandesign
Copy link

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.

@ncb000gt
Copy link
Member

Suspect I goofed that. ATM supply the rounds and it should work.

I'll fix the error messaging.

Thanks!

@ncb000gt
Copy link
Member

Fixed and available in 0.3.2.

Thanks for finding this, not sure how I missed this to begin with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants