mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(package) http-auth v4.1.2
This commit is contained in:
parent
2f6cb2d2ad
commit
59bc7c4cd4
2 changed files with 2 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue