Updating Deprecated res.send

This commit is contained in:
Amos Haviv
2014-08-02 23:07:59 +03:00
parent 7091f6a4f4
commit e98554eda7

View File

@@ -75,7 +75,7 @@ exports.forgot = function(req, res, next) {
html: emailHTML
};
smtpTransport.sendMail(mailOptions, function(err) {
res.send(200, {
res.send({
message: 'An email has been sent to ' + user.email + ' with further instructions.'
});
done(err, 'done');