Unverified Commit 8767410a authored by John McLear's avatar John McLear Committed by GitHub
Browse files

be more strict on password check

parent cb856ea6
......@@ -37,7 +37,7 @@ exports.basicAuth = function (req, res, next) {
var username = userpass.shift();
var password = userpass.join(':');
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment