From 304d47ea3b49e621f59cdceab399e813475532ad Mon Sep 17 00:00:00 2001 From: kehiy Date: Mon, 15 May 2023 02:33:11 -0700 Subject: [PATCH] syntax error --- server/password-hash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/password-hash.js b/server/password-hash.js index df723b218..16eae938f 100644 --- a/server/password-hash.js +++ b/server/password-hash.js @@ -21,7 +21,7 @@ exports.generate = function (password) { */ exports.verify = function (password, hash) { let match; - match = isSHA1(hash) ? passwordHashOld.verify(password, hash) : bcrypt.compareSync(password, hash); + match = isSHA1(hash) ? passwordHashOld.verify(password, hash) : bcrypt.compareSync(password, hash); return match; };