From 2532c235b76b9af439c5d3b9b8586325f83507a2 Mon Sep 17 00:00:00 2001 From: Kristoffer Hebert Date: Fri, 1 Dec 2017 10:07:45 -0800 Subject: [PATCH] Update index.js Fixing typo. Fixes bug on users with "$U" in their hash. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 0ab57b5..cfd922f 100644 --- a/index.js +++ b/index.js @@ -130,7 +130,7 @@ function user_check_password(password, hashedPassword) { // This may be an updated password from user_update_7000(). Such hashes // have 'U' added as the first character and need an extra md5(). stored_hash = hashedPassword.substr(1); - password = crypto.hash('md5').update(password).digest('hex'); + password = crypto.createHash('md5').update(password).digest('hex'); } else { stored_hash = hashedPassword;