Skip to content

Commit 7529d77

Browse files
committed
Fixed another renamed function in bcrypt
1 parent 2630eee commit 7529d77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ldapauth.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ LdapAuth.prototype.authenticate = function (username, password, callback) {
174174
return callback(err);
175175
}
176176
if (self.opts.cache) {
177-
bcrypt.encrypt(password, self._salt, function(err, hash) {
177+
bcrypt.hash(password, self._salt, function(err, hash) {
178178
self.userCache.set(username, {password: hash, user: user});
179179
return callback(null, user);
180180
});

0 commit comments

Comments
 (0)