mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-14 06:45:33 +00:00
fix: read custom texts for pages called directly form mail link (#4255)
* fix: read custom texts for pages called directly form mail link * log errors
This commit is contained in:
@@ -148,6 +148,12 @@ func (l *Login) renderInitPassword(w http.ResponseWriter, r *http.Request, authR
|
||||
}
|
||||
}
|
||||
translator := l.getTranslator(r.Context(), authReq)
|
||||
if authReq == nil {
|
||||
user, err := l.query.GetUserByID(r.Context(), false, userID)
|
||||
if err == nil {
|
||||
l.customTexts(r.Context(), translator, user.ResourceOwner)
|
||||
}
|
||||
}
|
||||
l.renderer.RenderTemplate(w, r, translator, l.renderer.Templates[tmplInitPassword], data, nil)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user