mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 19:17:32 +00:00
fix: email template (#1830)
* fix: email template * fix: email template
This commit is contained in:
@@ -33,7 +33,6 @@ type TemplateData struct {
|
||||
PrimaryColor string
|
||||
BackgroundColor string
|
||||
FontColor string
|
||||
IncludeLogo bool
|
||||
LogoURL string
|
||||
FontURL string
|
||||
FontFamily string
|
||||
@@ -83,10 +82,8 @@ func GetTemplateData(apiDomain, href string, text *iam_model.MailTextView, polic
|
||||
if apiDomain == "" {
|
||||
return templateData
|
||||
}
|
||||
if policy.LogoURL == "" {
|
||||
templateData.IncludeLogo = false
|
||||
} else {
|
||||
templateData.IncludeLogo = true
|
||||
templateData.LogoURL = ""
|
||||
if policy.LogoURL != "" {
|
||||
templateData.LogoURL = fmt.Sprintf("%s/assets/v1/%s/%s", apiDomain, policy.AggregateID, policy.LogoURL)
|
||||
}
|
||||
if policy.FontURL != "" {
|
||||
|
Reference in New Issue
Block a user