From 987634ee2aa16d0b65a11df8972d603d06e12711 Mon Sep 17 00:00:00 2001 From: Amos Haviv Date: Mon, 26 May 2014 01:04:29 +0300 Subject: [PATCH] Fixing Salt Save Error This fixes #75 --- app/controllers/users.server.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users.server.controller.js b/app/controllers/users.server.controller.js index 13e16ea107..e48784f94f 100755 --- a/app/controllers/users.server.controller.js +++ b/app/controllers/users.server.controller.js @@ -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 {