Merge pull request #2310 from ambrt/ambrt-patch-1

Update user.js
This commit is contained in:
Simon Ho 2016-05-09 12:30:17 -07:00
commit 363bc4d6c1
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,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;