From c800c0a18f44c6b863167ddb8e439549687d06a7 Mon Sep 17 00:00:00 2001 From: Veikko Karsikko Date: Wed, 6 May 2015 13:27:04 +0300 Subject: [PATCH] Hide email address and remove trailing whitespaces Email address should not be shown to client --- .../controllers/users/users.password.server.controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/users/server/controllers/users/users.password.server.controller.js b/modules/users/server/controllers/users/users.password.server.controller.js index 653dbfe372..060bdca28b 100644 --- a/modules/users/server/controllers/users/users.password.server.controller.js +++ b/modules/users/server/controllers/users/users.password.server.controller.js @@ -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.' }); } @@ -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); @@ -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'); });