express-basic-auth
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -44,7 +44,5 @@ var auth = require('basic-auth'); | ||
next(); | ||
return next(); | ||
function unauthorized() { | ||
res.status(401); | ||
//TODO: Allow to set realm for the challenge | ||
@@ -55,3 +53,3 @@ if(challenge) | ||
//TODO: Allow response body to be JSON (maybe autodetect?) | ||
return res.send(getResponseBody(req)); | ||
return res.status(401).send(getResponseBody(req)); | ||
} | ||
@@ -58,0 +56,0 @@ |
{ | ||
"name": "express-basic-auth", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Plug & play basic auth middleware for express", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10158
131