This commit is contained in:
Matteo Pagliazzi 2013-10-26 18:16:16 +02:00
parent 29f5eb5293
commit 6b23530caa

View file

@ -172,7 +172,7 @@ api.resetPassword = function(req, res, next){
to: email,
subject: "Password Reset for HabitRPG",
text: "Password for " + user.auth.local.username + " has been reset to " + newPassword + ". Log in at " + nconf.get('BASE_URL'),
html: "Password for <strong>" + user.auth.local.username + "</strong> has been reset to <strong>" + newPassword + "</strong>. Log in at" + nconf.get('BASE_URL')
html: "Password for <strong>" + user.auth.local.username + "</strong> has been reset to <strong>" + newPassword + "</strong>. Log in at " + nconf.get('BASE_URL')
});
user.save();
return res.send('New password sent to '+ email);