stages/email: Only attach logo to email if used (#14835) * Only attach logo to email if used * Fix MIME logo attachment to adhere to standard * format, fix web * not tuple --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Christian Elsen <chriselsen@users.noreply.github.com> Co-authored-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							2be5c9633b
						
					
				
				
					commit
					b94fb53821
				
			@ -374,7 +374,7 @@ ${JSON.stringify(value.new_value, null, 4)}</pre
 | 
			
		||||
 | 
			
		||||
    renderEmailSent() {
 | 
			
		||||
        let body = this.event.context.body as string;
 | 
			
		||||
        body = body.replace("cid:logo.png", "/static/dist/assets/icons/icon_left_brand.png");
 | 
			
		||||
        body = body.replace("cid:logo", "/static/dist/assets/icons/icon_left_brand.png");
 | 
			
		||||
        return html`<div class="pf-c-card__title">${msg("Email info:")}</div>
 | 
			
		||||
            <div class="pf-c-card__body">${this.getEmailInfo(this.event.context)}</div>
 | 
			
		||||
            <ak-expand>
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user