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; |       emailParams['h:Reply-To'] = emailParams.replyTo; | ||||||
| 
 | 
 | ||||||
|       return req.getSiteCapability('email@daplie.com').sendMailAsync(emailParams).then(function () { |       return req.getSiteCapability('email@daplie.com').then(function (mailer) { | ||||||
|         return { |         return mailer.sendMailAsync(emailParams).then(function () { | ||||||
|           code_id: code.id, |           return { | ||||||
|           expires: code.expires, |             code_id: code.id, | ||||||
|           created: new Date(parseInt(code.createdAt, 10) || code.createdAt), |             expires: code.expires, | ||||||
|         }; |             created: new Date(parseInt(code.createdAt, 10) || code.createdAt), | ||||||
|  |           }; | ||||||
|  |         }); | ||||||
|       }); |       }); | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user