mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 05:44:36 +00:00
cleanup
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
// )
|
||||
|
||||
@@ -61,8 +61,6 @@ export function UsernameForm({
|
||||
setLoading(false);
|
||||
});
|
||||
|
||||
console.log(res, "res");
|
||||
|
||||
if (res?.redirect) {
|
||||
return router.push(res.redirect);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user