Skip to content

Commit

Permalink
Password check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMcLear committed Apr 7, 2018
1 parent 6d5dc93 commit fa83de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/hooks/express/webaccess.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fa83de7

Please sign in to comment.