Merge pull request #2317 from strongloop/backport/change-all-hrefs-in-verification-email

Update user.js
This commit is contained in:
Simon Ho 2016-05-10 17:15:23 -07:00
commit 14aed2251c
1 changed files with 1 additions and 1 deletions

View File

@ -420,7 +420,7 @@ module.exports = function(User) {
options.text = options.text || 'Please verify your email by opening this link in a web browser:\n\t{href}';
options.text = options.text.replace('{href}', options.verifyHref);
options.text = options.text.replace(/\{href\}/g, options.verifyHref);
options.to = options.to || user.email;