Skip to content

Commit

Permalink
Merge pull request meanjs#225 from uwolfer/password-request-mail-failure
Browse files Browse the repository at this point in the history
Show error message when sending password request mail fails
  • Loading branch information
amoshaviv committed Nov 26, 2014
2 parents 6783ba5 + 619c7f2 commit b7a47d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/users/users.password.server.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b7a47d1

Please sign in to comment.