mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-06 13:57:41 +00:00
fix(login): (re)allow HTML in custom login texts (#7575)
fix: allow HTML in custom login texts
This commit is contained in:
parent
732217bc5e
commit
6c3f48f496
@ -123,7 +123,7 @@ func (r *Renderer) registerTranslateFn(req *http.Request, translator *i18n.Trans
|
||||
if translator == nil {
|
||||
return funcs
|
||||
}
|
||||
funcs[TranslateFn] = func(id string, args ...interface{}) string {
|
||||
funcs[TranslateFn] = func(id string, args ...interface{}) template.HTML {
|
||||
m := map[string]interface{}{}
|
||||
var key string
|
||||
for i, arg := range args {
|
||||
@ -134,9 +134,9 @@ func (r *Renderer) registerTranslateFn(req *http.Request, translator *i18n.Trans
|
||||
m[key] = arg
|
||||
}
|
||||
if r == nil {
|
||||
return r.Localize(translator, id, m)
|
||||
return template.HTML(r.Localize(translator, id, m))
|
||||
}
|
||||
return r.LocalizeFromRequest(translator, req, id, m)
|
||||
return template.HTML(r.LocalizeFromRequest(translator, req, id, m))
|
||||
}
|
||||
return funcs
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user