Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Fixing 'me' password leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Amos Haviv authored and Amos Haviv committed Nov 22, 2013
1 parent 5505b3a commit ca0d6a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/passport.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = function(passport) {
passport.deserializeUser(function(id, done) {
User.findOne({
_id: id
}, function(err, user) {
}, '-salt -hashed_password', function(err, user) {
done(err, user);
});
});
Expand Down

0 comments on commit ca0d6a9

Please sign in to comment.