This commit is contained in:
Max Peintner
2025-04-15 09:39:42 +02:00
parent 579e2580f5
commit d50dc746c7

View File

@@ -157,17 +157,20 @@ export default async function Page(props: {
></ChooseAuthenticatorToSetup>
)}
{loginSettings?.allowExternalIdp && identityProviders && (
<>
{identityProviders.length && (
<div className="py-3 flex flex-col">
<p className="ztdl-p text-center">{t("linkWithIDP")}</p>
</div>
{loginSettings?.allowExternalIdp && identityProviders && (
)}
<SignInWithIdp
identityProviders={identityProviders}
requestId={requestId}
organization={sessionWithData.factors?.user?.organizationId}
linkOnly={true} // tell the callback function to just link the IDP and not login, to get an error when user is already available
></SignInWithIdp>
</>
)}
<div className="mt-8 flex w-full flex-row items-center">