koa-basic-auth
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -30,3 +30,3 @@ | ||
if (user.name == opts.name && user.pass == opts.pass) { | ||
if (user && user.name == opts.name && user.pass == opts.pass) { | ||
yield next; | ||
@@ -37,2 +37,2 @@ } else { | ||
}; | ||
}; | ||
}; |
@@ -5,3 +5,6 @@ { | ||
"repository": "koajs/basic-auth", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"scripts": { | ||
"test": "make test" | ||
}, | ||
"keywords": [ | ||
@@ -19,3 +22,2 @@ "koa", | ||
"koa": "koajs/koa", | ||
"should": "~1.2.2", | ||
"mocha": "~1.12.0", | ||
@@ -22,0 +24,0 @@ "supertest": "~0.7.1" |
# koa-basic-auth | ||
# koa-basic-auth [![Build Status](https://travis-ci.org/koajs/basic-auth.png)](https://travis-ci.org/koajs/basic-auth) | ||
@@ -67,2 +67,2 @@ Add simple "blanket" basic auth with username / password. If you require | ||
MIT | ||
MIT |
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
2346
3
29
68