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

Commit

Permalink
Merge pull request #549 from vepasto/patch-5
Browse files Browse the repository at this point in the history
Hide email address when reseting password
  • Loading branch information
ilanbiala committed May 17, 2015
2 parents 426ce9e + c800c0a commit 6fddcf4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ exports.forgot = function(req, res, next) {
smtpTransport.sendMail(mailOptions, function(err) {
if (!err) {
res.send({
message: 'An email has been sent to ' + user.email + ' with further instructions.'
message: 'An email has been sent to the provided email with further instructions.'
});
}

Expand Down Expand Up @@ -137,7 +137,7 @@ exports.reset = function(req, res, next) {
if (err) {
res.status(400).send(err);
} else {
// Return authenticated user
// Return authenticated user
res.json(user);

done(err, user);
Expand Down Expand Up @@ -174,7 +174,7 @@ exports.reset = function(req, res, next) {
subject: 'Your password has been changed',
html: emailHTML
};

smtpTransport.sendMail(mailOptions, function(err) {
done(err, 'done');
});
Expand Down

0 comments on commit 6fddcf4

Please sign in to comment.