Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Updating Deprecated res.send
Browse files Browse the repository at this point in the history
  • Loading branch information
amoshaviv committed Aug 2, 2014
1 parent 7091f6a commit e98554e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users/users.password.server.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit e98554e

Please sign in to comment.