feat(auth): username and password may now be sourced from config.json fixes #104
This commit is contained in:
parent
edff209392
commit
c7aff0ab64
1 changed files with 0 additions and 2 deletions
|
|
@ -26,8 +26,6 @@ exports.basicAuth = function basicAuth (req, res, next) {
|
|||
req.session.username = defaultCredentials.username;
|
||||
req.session.userpassword = defaultCredentials.password;
|
||||
}
|
||||
console.log("req.session: " +req.session.username + " pass: " + req.session.userpassword);
|
||||
console.log("def: " +defaultCredentials.username + " pass: " + defaultCredentials.password);
|
||||
if (!req.session.userpassword) {
|
||||
res.statusCode = 401
|
||||
debug('basicAuth credential request (401)')
|
||||
|
|
|
|||
Loading…
Reference in a new issue