Merge pull request #2317 from strongloop/backport/change-all-hrefs-in-verification-email
Update user.js
This commit is contained in:
commit
14aed2251c
|
@ -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 || '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;
|
options.to = options.to || user.email;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue