From 341390a74ebb48eef1de73a43154288fe09e67c5 Mon Sep 17 00:00:00 2001 From: Rik Date: Sun, 8 May 2016 13:10:56 +0200 Subject: [PATCH] Update user.js allow to change all {href} instances in user.verify() mail into generated url instead of just one --- 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 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;