File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -443,26 +443,20 @@ module.exports = function(User) {
443443 function sendEmail ( user ) {
444444 options . verifyHref += '&token=' + user . verificationToken ;
445445
446- options . text = options . text || 'Please verify your email by opening ' +
447- 'this link in a web browser:\n\t{href}' ;
446+ options . text = options . text || g . f ( 'Please verify your email by opening ' +
447+ 'this link in a web browser:\n\t%s' , options . verifyHref ) ;
448448
449449 options . text = options . text . replace ( / \{ h r e f \} / g, options . verifyHref ) ;
450450
451- options . text = g . f ( options . text ) ;
452-
453451 options . to = options . to || user . email ;
454452
455- options . subject = options . subject || 'Thanks for Registering' ;
456-
457- options . subject = g . f ( options . subject ) ;
453+ options . subject = options . subject || g . f ( 'Thanks for Registering' ) ;
458454
459455 options . headers = options . headers || { } ;
460456
461457 var template = loopback . template ( options . template ) ;
462458 options . html = template ( options ) ;
463459
464- options . html = g . f ( options . html ) ;
465-
466460 Email . send ( options , function ( err , email ) {
467461 if ( err ) {
468462 fn ( err ) ;
You can’t perform that action at this time.
0 commit comments