This commit is contained in:
Mathew Kurian 2016-02-13 16:14:45 -06:00
parent 1416f1e861
commit 4d89d5ed57
2 changed files with 2 additions and 2 deletions

View file

@ -94,7 +94,7 @@ function create() {
return res.sendStatus(401);
}
if (!routerConfig.authorization || !routerConfig.username && !routerConfig.password) {
if (routerConfig.authentication === false || !routerConfig.username && !routerConfig.password) {
return next();
}

View file

@ -45,7 +45,7 @@ export function create(mongoUri = 'mongodb://localhost/scribe', routerConfig = {
return res.sendStatus(401);
}
if (!routerConfig.authorization || (!routerConfig.username && !routerConfig.password)) {
if (routerConfig.authentication === false || (!routerConfig.username && !routerConfig.password)) {
return next();
}