fix getSiteMailer -> getSiteCapability update
This commit is contained in:
		
							parent
							
								
									7e0d866e21
								
							
						
					
					
						commit
						d33ff6992c
					
				
							
								
								
									
										14
									
								
								accounts.js
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								accounts.js
									
									
									
									
									
								
							@ -182,12 +182,14 @@ function create(app) {
 | 
			
		||||
      };
 | 
			
		||||
      emailParams['h:Reply-To'] = emailParams.replyTo;
 | 
			
		||||
 | 
			
		||||
      return req.getSiteCapability('email@daplie.com').sendMailAsync(emailParams).then(function () {
 | 
			
		||||
        return {
 | 
			
		||||
          code_id: code.id,
 | 
			
		||||
          expires: code.expires,
 | 
			
		||||
          created: new Date(parseInt(code.createdAt, 10) || code.createdAt),
 | 
			
		||||
        };
 | 
			
		||||
      return req.getSiteCapability('email@daplie.com').then(function (mailer) {
 | 
			
		||||
        return mailer.sendMailAsync(emailParams).then(function () {
 | 
			
		||||
          return {
 | 
			
		||||
            code_id: code.id,
 | 
			
		||||
            expires: code.expires,
 | 
			
		||||
            created: new Date(parseInt(code.createdAt, 10) || code.createdAt),
 | 
			
		||||
          };
 | 
			
		||||
        });
 | 
			
		||||
      });
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user