From f9050c3bdd32611aa286fd4eb4544ef1d6a45b3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aitor=20Aznar=20=C3=81lvarez?= Date: Thu, 24 Mar 2016 13:34:52 +0100 Subject: [PATCH] Replace all the "{href}" placeholders in verify email template using regex --- common/models/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/models/user.js b/common/models/user.js index 35a0abaa3..0283d921a 100644 --- a/common/models/user.js +++ b/common/models/user.js @@ -417,7 +417,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\}/gm, options.verifyHref); options.to = options.to || user.email;