mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-13 21:36:03 +00:00
cleanup
This commit is contained in:
@@ -72,7 +72,11 @@ export default async function Page(props: {
|
|||||||
|
|
||||||
const providerType = idpTypeToIdentityProviderType(idp.type);
|
const providerType = idpTypeToIdentityProviderType(idp.type);
|
||||||
|
|
||||||
if (link && options?.isLinkingAllowed) {
|
if (link) {
|
||||||
|
if (!options?.isLinkingAllowed) {
|
||||||
|
return linkingFailed(branding, "Linking is no longer allowed");
|
||||||
|
}
|
||||||
|
|
||||||
let idpLink;
|
let idpLink;
|
||||||
try {
|
try {
|
||||||
idpLink = await addIDPLink(
|
idpLink = await addIDPLink(
|
||||||
@@ -155,10 +159,6 @@ export default async function Page(props: {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (link) {
|
|
||||||
return linkingFailed(branding);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (options?.isCreationAllowed && options.isAutoCreation) {
|
if (options?.isCreationAllowed && options.isAutoCreation) {
|
||||||
let orgToRegisterOn: string | undefined = organization;
|
let orgToRegisterOn: string | undefined = organization;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user