🐛 Apply branding to auth page when not authenticated not only when authed

This commit is contained in:
Fred KISSIE
2025-11-15 05:43:17 +01:00
parent 790f7083e2
commit 29a52f6ac4
6 changed files with 200 additions and 20 deletions

View File

@@ -87,7 +87,14 @@ type ResourceAuthPortalProps = {
redirect: string;
idps?: LoginFormIDP[];
orgId?: string;
branding?: Omit<GetLoginPageBrandingResponse, "loginPageBrandingId"> | null;
branding?: {
logoUrl: string;
logoWidth: number;
logoHeight: number;
primaryColor: string | null;
resourceTitle: string;
resourceSubtitle: string | null;
};
};
/**
@@ -342,8 +349,8 @@ export default function ResourceAuthPortal(props: ResourceAuthPortalProps) {
function getTitle(resourceName: string) {
if (
isUnlocked() &&
build !== "oss" &&
isUnlocked() &&
(!!env.branding.resourceAuthPage?.titleText ||
!!props.branding?.resourceTitle)
) {