From 59bc7c4cd485df31735d350fed6d9d8d52e9bc83 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 3 Feb 2020 16:35:50 +0200 Subject: [PATCH] feature(package) http-auth v4.1.2 --- package.json | 2 +- server/auth.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 247661a3..4639a170 100644 --- a/package.json +++ b/package.json @@ -129,7 +129,7 @@ "for-each-key": "^2.0.0", "format-io": "^2.0.0", "fullstore": "^2.0.2", - "http-auth": "^3.2.3", + "http-auth": "^4.1.2", "inly": "^4.0.0", "jaguar": "^6.0.0", "jju": "^1.3.0", diff --git a/server/auth.js b/server/auth.js index d8f72956..69fc85ee 100644 --- a/server/auth.js +++ b/server/auth.js @@ -21,7 +21,7 @@ function _middle(config, authentication, req, res, next) { return next(); const success = () => next(/* success */); - authentication.check(req, res, success); + return authentication.check(success)(req, res); } function _check(config, username, password, callback) {