diff --git a/common/models/user.js b/common/models/user.js index 6e303eb4..c2d36315 100644 --- a/common/models/user.js +++ b/common/models/user.js @@ -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;