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
parent ca1baee0f9
commit 341390a74e
1 changed files with 1 additions and 1 deletions

View File

@ -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;