clever-auth
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -44,5 +44,8 @@ var crypto = require( 'crypto' ) | ||
? parts.pop() | ||
: false | ||
, method = req.method | ||
? req.method.toLowerCase() | ||
: false; | ||
if ( req.isAuthenticated() || ( route === 'user' && ( action === 'login' || action === 'current' ) ) ) { | ||
if ( req.isAuthenticated() || ( route === 'user' && ( method === 'post' || action === 'login' || action === 'current' ) ) ) { | ||
return next(); | ||
@@ -49,0 +52,0 @@ } |
{ | ||
"name": "clever-auth", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "passport": "^0.2.0", |
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
143234
3069