mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-09 20:26:40 +00:00
♻️only apply org branding in saas
This commit is contained in:
@@ -137,14 +137,16 @@ export default async function OrgAuthPage(props: {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let branding: LoadLoginPageBrandingResponse | null = null;
|
let branding: LoadLoginPageBrandingResponse | null = null;
|
||||||
try {
|
if (build === "saas") {
|
||||||
const res = await priv.get<
|
try {
|
||||||
AxiosResponse<LoadLoginPageBrandingResponse>
|
const res = await priv.get<
|
||||||
>(`/login-page-branding?orgId=${loginPage.orgId}`);
|
AxiosResponse<LoadLoginPageBrandingResponse>
|
||||||
if (res.status === 200) {
|
>(`/login-page-branding?orgId=${loginPage.orgId}`);
|
||||||
branding = res.data.data;
|
if (res.status === 200) {
|
||||||
}
|
branding = res.data.data;
|
||||||
} catch (error) {}
|
}
|
||||||
|
} catch (error) {}
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user