mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 23:27:31 +00:00
fix: respect PrivateLabelingSetting on project for login texts (#8744)
# Which Problems Are Solved Admins can set the branding to be used from the project's organization. Until now, only the branding (colors) were respected, but texts were still loaded from the user's organization. # How the Problems Are Solved Respect the setting when loading the texts for the login pages. # Additional Changes None # Additional Context - closes #8502
This commit is contained in:
@@ -726,7 +726,7 @@ func (repo *AuthRequestRepo) fillPolicies(ctx context.Context, request *domain.A
|
||||
request.DefaultTranslations = defaultLoginTranslations
|
||||
}
|
||||
if len(request.OrgTranslations) == 0 || request.PolicyOrgID() != orgID {
|
||||
orgLoginTranslations, err := repo.getLoginTexts(ctx, orgID)
|
||||
orgLoginTranslations, err := repo.getLoginTexts(ctx, request.PrivateLabelingOrgID(orgID))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user