mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 14:32:34 +00:00
combined otp form
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { getBrandingSettings, getLoginSettings, server } from "#/lib/zitadel";
|
||||
import DynamicTheme from "#/ui/DynamicTheme";
|
||||
import TOTPForm from "#/ui/TOTPForm";
|
||||
import LoginOTP from "#/ui/LoginOTP";
|
||||
import VerifyU2F from "#/ui/VerifyU2F";
|
||||
|
||||
export default async function Page({
|
||||
@@ -15,8 +15,6 @@ export default async function Page({
|
||||
|
||||
const { method } = params;
|
||||
|
||||
console.log(method);
|
||||
|
||||
const branding = await getBrandingSettings(server, organization);
|
||||
|
||||
return (
|
||||
@@ -37,15 +35,13 @@ export default async function Page({
|
||||
)}
|
||||
|
||||
{method && ["time-based", "sms", "email"].includes(method) ? (
|
||||
<TOTPForm
|
||||
<LoginOTP
|
||||
loginName={loginName}
|
||||
sessionId={sessionId}
|
||||
code={code}
|
||||
method={method}
|
||||
authRequestId={authRequestId}
|
||||
organization={organization}
|
||||
submit={submit === "true"}
|
||||
/>
|
||||
method={method}
|
||||
></LoginOTP>
|
||||
) : (
|
||||
<VerifyU2F
|
||||
loginName={loginName}
|
||||
|
||||
Reference in New Issue
Block a user