From fa83de778cdc6e7c3b83e356b45b76b955ec63ba Mon Sep 17 00:00:00 2001 From: John McLear Date: Sat, 7 Apr 2018 10:31:47 +0100 Subject: [PATCH] Password check fix --- src/node/hooks/express/webaccess.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/hooks/express/webaccess.js b/src/node/hooks/express/webaccess.js index 4b9ad4eb..4cb4b9d3 100644 --- a/src/node/hooks/express/webaccess.js +++ b/src/node/hooks/express/webaccess.js @@ -38,7 +38,7 @@ exports.basicAuth = function (req, res, next) { var password = userpass.join(':'); var fallback = function(success) { if (success) return cb(true); - if (settings.users[username] != undefined && settings.users[username].password == password) { + if (settings.users[username] != undefined && settings.users[username].password === password) { settings.users[username].username = username; req.session.user = settings.users[username]; return cb(true);