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

Commit 6fddcf4

Browse files
committed
Merge pull request #549 from vepasto/patch-5
Hide email address when reseting password
2 parents 426ce9e + c800c0a commit 6fddcf4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/users/server/controllers/users/users.password.server.controller.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ exports.forgot = function(req, res, next) {
7474
smtpTransport.sendMail(mailOptions, function(err) {
7575
if (!err) {
7676
res.send({
77-
message: 'An email has been sent to ' + user.email + ' with further instructions.'
77+
message: 'An email has been sent to the provided email with further instructions.'
7878
});
7979
}
8080

@@ -137,7 +137,7 @@ exports.reset = function(req, res, next) {
137137
if (err) {
138138
res.status(400).send(err);
139139
} else {
140-
// Return authenticated user
140+
// Return authenticated user
141141
res.json(user);
142142

143143
done(err, user);
@@ -174,7 +174,7 @@ exports.reset = function(req, res, next) {
174174
subject: 'Your password has been changed',
175175
html: emailHTML
176176
};
177-
177+
178178
smtpTransport.sendMail(mailOptions, function(err) {
179179
done(err, 'done');
180180
});

0 commit comments

Comments
 (0)