Skip to content

Commit

Permalink
Merge 6bd689c into 882d65e
Browse files Browse the repository at this point in the history
  • Loading branch information
pragmaticivan committed Dec 15, 2018
2 parents 882d65e + 6bd689c commit 9e1a628
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/sessionmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,16 @@ SessionManager.prototype.logIn = function(req, user, cb) {
req.session = {};
}
req.session[self._key] = req._passport.session;
cb();
if (typeof req.session.save == 'function') {
req.session.save(function () {
if (err) {
cb(err);
}
cb();
});
} else {
cb();
}
});
}

Expand Down

0 comments on commit 9e1a628

Please sign in to comment.