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