start writing validations

This commit is contained in:
Michael Q Larson
2014-11-30 15:25:00 -08:00
parent 1accb225c6
commit ec5fea2eaa
3 changed files with 11 additions and 7 deletions

View File

@ -158,7 +158,7 @@ exports.postUpdateProfile = function(req, res, next) {
if (err) return next(err);
user.email = req.body.email || '';
user.profile.name = req.body.name || '';
user.profile.gender = req.body.gender || '';
user.profile.username = req.body.username || '';
user.profile.location = req.body.location || '';
user.profile.website = req.body.website || '';