Skip to content

Commit

Permalink
Merge pull request #491 from murashki/master
Browse files Browse the repository at this point in the history
session.js code cosmetics
  • Loading branch information
jaredhanson committed Oct 10, 2016
2 parents ad5fe1d + 63a267e commit 3eaafe4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lib/strategies/session.js
Expand Up @@ -54,14 +54,10 @@ SessionStrategy.prototype.authenticate = function(req, options) {
if (err) { return self.error(err); }
if (!user) {
delete req._passport.session.user;
self.pass();
if (paused) {
paused.resume();
}
return;
} else {
var property = req._passport.instance._userProperty || 'user';
req[property] = user;
}
var property = req._passport.instance._userProperty || 'user';
req[property] = user;
self.pass();
if (paused) {
paused.resume();
Expand Down

0 comments on commit 3eaafe4

Please sign in to comment.