idp length check

This commit is contained in:
Max Peintner
2025-05-28 11:50:26 +02:00
parent 872a9b42ae
commit ce9a28d440

View File

@@ -184,13 +184,12 @@ export default async function Page(props: {
></ChooseAuthenticatorToSetup> ></ChooseAuthenticatorToSetup>
)} )}
{loginSettings?.allowExternalIdp && identityProviders && ( {loginSettings?.allowExternalIdp && !!identityProviders.length && (
<> <>
{identityProviders.length && ( <div className="py-3 flex flex-col">
<div className="py-3 flex flex-col"> <p className="ztdl-p text-center">{t("linkWithIDP")}</p>
<p className="ztdl-p text-center">{t("linkWithIDP")}</p> </div>
</div>
)}
<SignInWithIdp <SignInWithIdp
identityProviders={identityProviders} identityProviders={identityProviders}
requestId={requestId} requestId={requestId}