Skip to content

Commit

Permalink
Merge pull request #2310 from ambrt/ambrt-patch-1
Browse files Browse the repository at this point in the history
Update user.js
  • Loading branch information
superkhau committed May 9, 2016
2 parents 8a6deb8 + 341390a commit 363bc4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 363bc4d

Please sign in to comment.