From 1afd8703ce5cc49269d290c6494d7e23e0d535c8 Mon Sep 17 00:00:00 2001 From: lmiguelmh Date: Sun, 10 Nov 2019 12:11:20 -0500 Subject: [PATCH] pbkdf2 signature has changed on nodejs10.x https://github.com/danilop/LambdAuth/issues/71 --- LambdAuthResetPassword/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LambdAuthResetPassword/index.js b/LambdAuthResetPassword/index.js index 8736984..11c7f91 100644 --- a/LambdAuthResetPassword/index.js +++ b/LambdAuthResetPassword/index.js @@ -14,7 +14,7 @@ function computeHash(password, salt, fn) { var iterations = 4096; if (3 == arguments.length) { - crypto.pbkdf2(password, salt, iterations, len, function(err, derivedKey) { + crypto.pbkdf2(password, salt, iterations, len, 'sha1', function(err, derivedKey) { if (err) return fn(err); else fn(null, salt, derivedKey.toString('base64')); });