Skip to content

Commit fa83de7

Browse files
committed
Password check fix
1 parent 6d5dc93 commit fa83de7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/hooks/express/webaccess.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ exports.basicAuth = function (req, res, next) {
3838
var password = userpass.join(':');
3939
var fallback = function(success) {
4040
if (success) return cb(true);
41-
if (settings.users[username] != undefined && settings.users[username].password == password) {
41+
if (settings.users[username] != undefined && settings.users[username].password === password) {
4242
settings.users[username].username = username;
4343
req.session.user = settings.users[username];
4444
return cb(true);

0 commit comments

Comments
 (0)