diff --git a/controllers/user.js b/controllers/user.js index 6e5674a6360..8ec8edbbceb 100644 --- a/controllers/user.js +++ b/controllers/user.js @@ -120,9 +120,8 @@ exports.getAccount = function(req, res) { exports.postUpdateProfile = function(req, res, next) { User.findById(req.user.id, function(err, user) { if (err) return next(err); - + user.email = req.body.email || ''; user.profile.name = req.body.name || ''; - user.profile.email = req.body.email || ''; user.profile.gender = req.body.gender || ''; user.profile.location = req.body.location || ''; user.profile.website = req.body.website || '';