more refactoring

This commit is contained in:
Josh Harvey 2016-07-28 18:03:51 +03:00
parent 8acbc90dbd
commit 9a9c927801
6 changed files with 30 additions and 30 deletions

View file

@ -64,7 +64,7 @@ module.exports = function (options) {
server = https.createServer(serverOptions, app)
authMiddleware = function (req, res, next) {
lamassuConfig.isAuthorized(routes.getFingerprint(req), function (err,
lamassuConfig.isAuthorized(routes.getDeviceId(req), function (err,
device) {
if (err) {
res.json({err: 'Internal Server Error'})