Update user.js

allow to change all {href} instances in user.verify() mail into generated url instead of just one
This commit is contained in:
Rik 2016-05-08 13:10:56 +02:00 committed by Simon Ho
parent 3f54b07ab8
commit 7868803711
1 changed files with 1 additions and 1 deletions

View File

@ -420,7 +420,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;