server: lint

This commit is contained in:
bordun 2020-05-05 12:11:11 +02:00
parent 28fb5c03d3
commit 4d7ed54186
2 changed files with 12 additions and 13 deletions

View file

@ -4,18 +4,17 @@ var settings = require('./settings'),
if (settings.read('authentication')) {
var [name, pwd] = settings.read('authentication').split(':'),
httpAuth = require("http-auth")
httpAuth = require('http-auth')
auth = httpAuth.basic(
{
realm: "Open Stage Control"
},
(username, password, callback) => {
// Custom authentication method.
callback(username === name && password === pwd);
}
)
auth = httpAuth.basic(
{
realm: 'Open Stage Control'
},
(username, password, callback) => {
// Custom authentication method.
callback(username === name && password === pwd)
}
)
}