mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-25 05:58:45 +00:00
feat: add Help/Support e-mail for instance/org (#5445)
feat: help and support email in privacy policy
This commit is contained in:
@@ -289,7 +289,7 @@ type CustomLoginTextReadModel struct {
|
||||
FooterTOS string
|
||||
FooterPrivacyPolicy string
|
||||
FooterHelp string
|
||||
FooterHelpLink string
|
||||
FooterSupportEmail string
|
||||
}
|
||||
|
||||
func (wm *CustomLoginTextReadModel) Reduce() error {
|
||||
@@ -2515,6 +2515,10 @@ func (wm *CustomLoginTextReadModel) handleFooterTextSetEvent(e *policy.CustomTex
|
||||
wm.FooterHelp = e.Text
|
||||
return
|
||||
}
|
||||
if e.Key == domain.LoginKeyFooterSupportEmail {
|
||||
wm.FooterSupportEmail = e.Text
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
func (wm *CustomLoginTextReadModel) handleFooterTextRemoveEvent(e *policy.CustomTextRemovedEvent) {
|
||||
@@ -2530,4 +2534,8 @@ func (wm *CustomLoginTextReadModel) handleFooterTextRemoveEvent(e *policy.Custom
|
||||
wm.FooterHelp = ""
|
||||
return
|
||||
}
|
||||
if e.Key == domain.LoginKeyFooterSupportEmail {
|
||||
wm.FooterSupportEmail = ""
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user