mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:47:32 +00:00
fix: remove 3rd party assets from mail (#3569)
This commit is contained in:
@@ -15,8 +15,6 @@ func GetTemplateData(translator *i18n.Translator, translateArgs map[string]inter
|
||||
PrimaryColor: templates.DefaultPrimaryColor,
|
||||
BackgroundColor: templates.DefaultBackgroundColor,
|
||||
FontColor: templates.DefaultFontColor,
|
||||
LogoURL: templates.DefaultLogo,
|
||||
FontURL: templates.DefaultFont,
|
||||
FontFamily: templates.DefaultFontFamily,
|
||||
IncludeFooter: false,
|
||||
}
|
||||
@@ -33,14 +31,14 @@ func GetTemplateData(translator *i18n.Translator, translateArgs map[string]inter
|
||||
if assetsPrefix == "" {
|
||||
return templateData
|
||||
}
|
||||
templateData.LogoURL = ""
|
||||
if policy.Light.LogoURL != "" {
|
||||
templateData.LogoURL = fmt.Sprintf("%s/%s/%s", assetsPrefix, policy.ID, policy.Light.LogoURL)
|
||||
}
|
||||
if policy.FontURL != "" {
|
||||
split := strings.Split(policy.FontURL, "/")
|
||||
templateData.FontFamily = split[len(split)-1] + "," + templates.DefaultFontFamily
|
||||
templateData.FontFaceFamily = split[len(split)-1]
|
||||
templateData.FontURL = fmt.Sprintf("%s/%s/%s", assetsPrefix, policy.ID, policy.FontURL)
|
||||
templateData.FontFamily = templateData.FontFaceFamily + "," + templates.DefaultFontFamily
|
||||
}
|
||||
return templateData
|
||||
}
|
||||
|
Reference in New Issue
Block a user