mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-15 19:33:44 +00:00
cleanup serviceUrl, host, basepath configurable
This commit is contained in:
@@ -23,15 +23,10 @@ export default async function Page(props: {
|
||||
searchParams;
|
||||
|
||||
const _headers = await headers();
|
||||
const instanceUrl = getApiUrlOfHeaders(_headers);
|
||||
const host = instanceUrl;
|
||||
|
||||
if (!host || typeof host !== "string") {
|
||||
throw new Error("No host found");
|
||||
}
|
||||
const serviceUrl = getApiUrlOfHeaders(_headers);
|
||||
|
||||
if (!organization) {
|
||||
const org: Organization | null = await getDefaultOrg({ host });
|
||||
const org: Organization | null = await getDefaultOrg({ serviceUrl });
|
||||
if (org) {
|
||||
organization = org.id;
|
||||
}
|
||||
@@ -39,15 +34,15 @@ export default async function Page(props: {
|
||||
|
||||
const missingData = !firstname || !lastname || !email;
|
||||
|
||||
const legal = await getLegalAndSupportSettings({ host, organization });
|
||||
const legal = await getLegalAndSupportSettings({ serviceUrl, organization });
|
||||
const passwordComplexitySettings = await getPasswordComplexitySettings({
|
||||
host,
|
||||
serviceUrl,
|
||||
organization,
|
||||
});
|
||||
|
||||
const branding = await getBrandingSettings({ host, organization });
|
||||
const branding = await getBrandingSettings({ serviceUrl, organization });
|
||||
|
||||
const loginSettings = await getLoginSettings({ host, organization });
|
||||
const loginSettings = await getLoginSettings({ serviceUrl, organization });
|
||||
|
||||
return missingData ? (
|
||||
<DynamicTheme branding={branding}>
|
||||
|
||||
Reference in New Issue
Block a user