mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 07:24:51 +00:00
cleanup
This commit is contained in:
@@ -86,6 +86,8 @@ export default async function Page(props: {
|
|||||||
sessionWithData.factors?.user?.organizationId,
|
sessionWithData.factors?.user?.organizationId,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/* - TODO: Implement after https://github.com/zitadel/zitadel/issues/8981 */
|
||||||
|
|
||||||
// const identityProviders = await getActiveIdentityProviders(
|
// const identityProviders = await getActiveIdentityProviders(
|
||||||
// sessionWithData.factors?.user?.organizationId,
|
// sessionWithData.factors?.user?.organizationId,
|
||||||
// ).then((resp) => {
|
// ).then((resp) => {
|
||||||
@@ -134,6 +136,8 @@ export default async function Page(props: {
|
|||||||
></ChooseAuthenticatorToSetup>
|
></ChooseAuthenticatorToSetup>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{/* - TODO: Implement after https://github.com/zitadel/zitadel/issues/8981 */}
|
||||||
|
|
||||||
{/* <p className="ztdl-p text-center">
|
{/* <p className="ztdl-p text-center">
|
||||||
or sign in with an Identity Provider
|
or sign in with an Identity Provider
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -78,6 +78,8 @@ export function SignInWithIdp({
|
|||||||
<div className="flex flex-col w-full space-y-2 text-sm">
|
<div className="flex flex-col w-full space-y-2 text-sm">
|
||||||
{identityProviders &&
|
{identityProviders &&
|
||||||
identityProviders
|
identityProviders
|
||||||
|
/* - TODO: Implement after https://github.com/zitadel/zitadel/issues/8981 */
|
||||||
|
|
||||||
// .filter((idp) =>
|
// .filter((idp) =>
|
||||||
// linkOnly ? idp.config?.options.isLinkingAllowed : true,
|
// linkOnly ? idp.config?.options.isLinkingAllowed : true,
|
||||||
// )
|
// )
|
||||||
|
|||||||
@@ -61,8 +61,6 @@ export function UsernameForm({
|
|||||||
setLoading(false);
|
setLoading(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(res, "res");
|
|
||||||
|
|
||||||
if (res?.redirect) {
|
if (res?.redirect) {
|
||||||
return router.push(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;
|
const humanUser = user.type.case === "human" ? user.type.value : undefined;
|
||||||
console.log("humanUser", humanUser);
|
|
||||||
if (
|
if (
|
||||||
availableSecondFactors?.length == 0 &&
|
availableSecondFactors?.length == 0 &&
|
||||||
humanUser?.passwordChangeRequired
|
humanUser?.passwordChangeRequired
|
||||||
|
|||||||
Reference in New Issue
Block a user