Updated TO nodemailer field in reset controller

This commit is contained in:
Sahat Yalkabov
2014-03-06 02:43:32 -05:00
parent e53949cde1
commit d4c9786986

View File

@ -75,7 +75,7 @@ exports.postReset = function(req, res, next) {
} }
}); });
var mailOptions = { var mailOptions = {
to: user.profile.name + ' <' + user.email + '>', to: user.email,
from: 'hackathon@starter.com', from: 'hackathon@starter.com',
subject: 'Your Hackathon Starter password has been changed', subject: 'Your Hackathon Starter password has been changed',
text: 'Hello,\n\n' + text: 'Hello,\n\n' +