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

Commit

Permalink
Fixing Salt Save Error
Browse files Browse the repository at this point in the history
This fixes #75
  • Loading branch information
amoshaviv committed May 25, 2014
1 parent a7cb2b8 commit 987634e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users.server.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ exports.saveOAuthUserProfile = function(req, providerUserProfile, done) {
});
} else {
// User is already logged in, join the provider data to the existing user
User.findById(req.user.id, function(err, user) {
User.findById(req.user.id, '-salt -password', function(err, user) {
if (err) {
return done(err);
} else {
Expand Down

0 comments on commit 987634e

Please sign in to comment.