Добавил дебаг в комменте
This commit is contained in:
@@ -74,7 +74,12 @@ module.exports = function(app, config) {
|
|||||||
if (config.opds.password) {
|
if (config.opds.password) {
|
||||||
if (!config.opds.user)
|
if (!config.opds.user)
|
||||||
throw new Error('User must not be empty if password set');
|
throw new Error('User must not be empty if password set');
|
||||||
|
/*
|
||||||
|
app.use((req, res, next) => {
|
||||||
|
console.log(req.headers);
|
||||||
|
next();
|
||||||
|
});
|
||||||
|
*/
|
||||||
app.use(opdsPaths, basicAuth({
|
app.use(opdsPaths, basicAuth({
|
||||||
users: {[config.opds.user]: config.opds.password},
|
users: {[config.opds.user]: config.opds.password},
|
||||||
challenge: true,
|
challenge: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user