forked from mirrors/Scribe.js
Typo
This commit is contained in:
parent
1416f1e861
commit
4d89d5ed57
2 changed files with 2 additions and 2 deletions
2
dist/routers/viewer.js
vendored
2
dist/routers/viewer.js
vendored
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue