syntax error

This commit is contained in:
kehiy 2023-05-15 02:33:11 -07:00
parent 0eb0c351ee
commit 304d47ea3b

View file

@ -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;
};