mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-06 04:01:04 +01:00
Merge pull request #225 from uwolfer/password-request-mail-failure
Show error message when sending password request mail fails
This commit is contained in:
@@ -78,6 +78,10 @@ exports.forgot = function(req, res, next) {
|
||||
res.send({
|
||||
message: 'An email has been sent to ' + user.email + ' with further instructions.'
|
||||
});
|
||||
} else {
|
||||
return res.status(400).send({
|
||||
message: 'Failure sending email'
|
||||
});
|
||||
}
|
||||
|
||||
done(err);
|
||||
|
||||
Reference in New Issue
Block a user