mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-29 10:39:19 +01:00
Updating Deprecated res.send
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user