mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 15:03:52 +00:00
Merge branch 'refactor-zitadel-server' into qa
This commit is contained in:
@@ -7,13 +7,10 @@ import { useForm } from "react-hook-form";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { Spinner } from "./Spinner";
|
||||
import Alert from "./Alert";
|
||||
import {
|
||||
LoginSettings,
|
||||
AuthFactor,
|
||||
Checks,
|
||||
AuthenticationMethodType,
|
||||
} from "@zitadel/server";
|
||||
import BackButton from "./BackButton";
|
||||
import { LoginSettings } from "@zitadel/proto/zitadel/settings/v2beta/login_settings_pb";
|
||||
import { Checks } from "@zitadel/proto/zitadel/session/v2beta/session_service_pb";
|
||||
import { AuthenticationMethodType } from "@zitadel/proto/zitadel/user/v2beta/user_service_pb";
|
||||
|
||||
type Inputs = {
|
||||
password: string;
|
||||
@@ -110,7 +107,8 @@ export default function PasswordForm({
|
||||
|
||||
// exclude password
|
||||
const availableSecondFactors = resp.authMethods?.filter(
|
||||
(m: AuthenticationMethodType) => m !== 1,
|
||||
(m: AuthenticationMethodType) =>
|
||||
m !== AuthenticationMethodType.PASSWORD,
|
||||
);
|
||||
if (availableSecondFactors.length == 1) {
|
||||
const params = new URLSearchParams({
|
||||
|
||||
Reference in New Issue
Block a user