Fix [Object object] displayed on profile update success instead of the actual message text.

This commit is contained in:
Sahat Yalkabov
2014-01-27 07:58:32 -05:00
parent 839f91488a
commit 940d52bd43

View File

@ -133,7 +133,7 @@ exports.postUpdateProfile = function(req, res, next) {
user.save(function(err) {
if (err) return next(err);
req.flash('success', { success: 'Profile information updated.' });
req.flash('success', 'Profile information updated.');
res.redirect('/account');
});
});