♻️only apply org branding in saas

This commit is contained in:
Fred KISSIE
2025-11-15 06:26:17 +01:00
parent 87f23f582c
commit 2ada05b286
2 changed files with 10 additions and 21 deletions

View File

@@ -137,6 +137,7 @@ export default async function OrgAuthPage(props: {
} }
let branding: LoadLoginPageBrandingResponse | null = null; let branding: LoadLoginPageBrandingResponse | null = null;
if (build === "saas") {
try { try {
const res = await priv.get< const res = await priv.get<
AxiosResponse<LoadLoginPageBrandingResponse> AxiosResponse<LoadLoginPageBrandingResponse>
@@ -145,6 +146,7 @@ export default async function OrgAuthPage(props: {
branding = res.data.data; branding = res.data.data;
} }
} catch (error) {} } catch (error) {}
}
return ( return (
<div> <div>

View File

@@ -98,19 +98,6 @@ type ResourceAuthPortalProps = {
}; };
}; };
/**
* TODO: remove
- Auth page domain => only in SaaS
- Branding => saas & enterprise for a paid user ?
- ...
- resource auth page: `/auth/resource/[guid]` || (auth page domain/...)
- org auth page: `/auth/org/[orgId]`
=> only in SaaS
=> branding org title/subtitle only in SaaS
=> unauthenticated
*/
export default function ResourceAuthPortal(props: ResourceAuthPortalProps) { export default function ResourceAuthPortal(props: ResourceAuthPortalProps) {
const router = useRouter(); const router = useRouter();
const t = useTranslations(); const t = useTranslations();