Comparing version 0.1.7 to 0.1.8
@@ -250,2 +250,5 @@ /** | ||
if (err || user) { return done(err, user); } | ||
// a valid user existed when establishing the session, but that user has | ||
// since been removed | ||
if (user === null || user === false) { return done(null, false); } | ||
@@ -252,0 +255,0 @@ var layer = stack[i]; |
@@ -42,2 +42,6 @@ /** | ||
if (err) { return self.error(err); } | ||
if (!user) { | ||
delete req._passport.session.user; | ||
return self.pass(); | ||
}; | ||
var property = req._passport.instance._userProperty || 'user'; | ||
@@ -44,0 +48,0 @@ req[property] = user; |
{ | ||
"name": "passport", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "Simple, unobtrusive authentication for Node.js.", | ||
@@ -5,0 +5,0 @@ "author": { "name": "Jared Hanson", "email": "jaredhanson@gmail.com", "url": "http://www.jaredhanson.net/" }, |
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
23925
732