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:
parent
ca1baee0f9
commit
341390a74e
|
@ -433,7 +433,7 @@ module.exports = function(User) {
|
||||||
options.text = options.text || 'Please verify your email by opening ' +
|
options.text = options.text || 'Please verify your email by opening ' +
|
||||||
'this link in a web browser:\n\t{href}';
|
'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;
|
options.to = options.to || user.email;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue