From e98554eda76a375cbdfc1dcc7ddca67c45243079 Mon Sep 17 00:00:00 2001 From: Amos Haviv Date: Sat, 2 Aug 2014 23:07:59 +0300 Subject: [PATCH] Updating Deprecated res.send --- app/controllers/users/users.password.server.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users/users.password.server.controller.js b/app/controllers/users/users.password.server.controller.js index 70ffaced19..f714091305 100644 --- a/app/controllers/users/users.password.server.controller.js +++ b/app/controllers/users/users.password.server.controller.js @@ -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');