This commit is contained in:
Max Peintner
2024-12-03 13:48:07 +01:00
parent b81afaee15
commit 30091ddb17
4 changed files with 7 additions and 3 deletions

View File

@@ -86,6 +86,8 @@ export default async function Page(props: {
sessionWithData.factors?.user?.organizationId,
);
/* - TODO: Implement after https://github.com/zitadel/zitadel/issues/8981 */
// const identityProviders = await getActiveIdentityProviders(
// sessionWithData.factors?.user?.organizationId,
// ).then((resp) => {
@@ -134,6 +136,8 @@ export default async function Page(props: {
></ChooseAuthenticatorToSetup>
)}
{/* - TODO: Implement after https://github.com/zitadel/zitadel/issues/8981 */}
{/* <p className="ztdl-p text-center">
or sign in with an Identity Provider
</p>

View File

@@ -78,6 +78,8 @@ export function SignInWithIdp({
<div className="flex flex-col w-full space-y-2 text-sm">
{identityProviders &&
identityProviders
/* - TODO: Implement after https://github.com/zitadel/zitadel/issues/8981 */
// .filter((idp) =>
// linkOnly ? idp.config?.options.isLinkingAllowed : true,
// )

View File

@@ -61,8 +61,6 @@ export function UsernameForm({
setLoading(false);
});
console.log(res, "res");
if (res?.redirect) {
return router.push(res.redirect);
}

View File

@@ -149,7 +149,7 @@ export async function sendPassword(command: UpdateSessionCommand) {
);
const humanUser = user.type.case === "human" ? user.type.value : undefined;
console.log("humanUser", humanUser);
if (
availableSecondFactors?.length == 0 &&
humanUser?.passwordChangeRequired