Skip to content

Commit

Permalink
Update user.js
Browse files Browse the repository at this point in the history
allow to change all {href} instances in user.verify() mail into generated url instead of just one
  • Loading branch information
ambrt committed May 8, 2016
1 parent ca1baee commit 341390a
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 341390a

Please sign in to comment.