Skip to content

Commit 1afd870

Browse files
authored
pbkdf2 signature has changed on nodejs10.x
danilop#71
1 parent 9e9bc00 commit 1afd870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LambdAuthResetPassword/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function computeHash(password, salt, fn) {
1414
var iterations = 4096;
1515

1616
if (3 == arguments.length) {
17-
crypto.pbkdf2(password, salt, iterations, len, function(err, derivedKey) {
17+
crypto.pbkdf2(password, salt, iterations, len, 'sha1', function(err, derivedKey) {
1818
if (err) return fn(err);
1919
else fn(null, salt, derivedKey.toString('base64'));
2020
});

0 commit comments

Comments
 (0)