We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07bff37 commit 63a267eCopy full SHA for 63a267e
lib/strategies/session.js
@@ -54,14 +54,10 @@ SessionStrategy.prototype.authenticate = function(req, options) {
54
if (err) { return self.error(err); }
55
if (!user) {
56
delete req._passport.session.user;
57
- self.pass();
58
- if (paused) {
59
- paused.resume();
60
- }
61
- return;
+ } else {
+ var property = req._passport.instance._userProperty || 'user';
+ req[property] = user;
62
}
63
- var property = req._passport.instance._userProperty || 'user';
64
- req[property] = user;
65
self.pass();
66
if (paused) {
67
paused.resume();
0 commit comments