diff options
Diffstat (limited to 'config/passport.js')
-rw-r--r-- | config/passport.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/config/passport.js b/config/passport.js index e0be2d9..ae8d34a 100644 --- a/config/passport.js +++ b/config/passport.js @@ -37,7 +37,7 @@ module.exports = function (passport, config) { if (err) return done(err); if (!user) return done(null, false, { message: 'Unknown user' }); if (!user.authenticate(password)) return done(null, false, { message: 'Invalid password' }); - return done(null, user); + return done(null, user); // yay! }); })); @@ -48,7 +48,7 @@ module.exports = function (passport, config) { User.findOne({ _id: access.user }, function(err, user) { if (err) return done(err); if (!user) return done(null, false, { message: 'Unknown user' }); - return done(null, user); + return done(null, user); // yay! }); }); })); @@ -115,9 +115,5 @@ module.exports = function (passport, config) { })); - - - - } |