u2f pages, choose 2 factor page

This commit is contained in:
peintnermax
2024-04-18 15:56:20 +02:00
parent a9901d4531
commit 42df2c42d1
6 changed files with 345 additions and 33 deletions

View File

@@ -30,11 +30,8 @@ export default async function Page({
{method === "email" && (
<p className="ztdl-p">Enter the code you got via your email.</p>
)}
{method === "u2f" && (
<p className="ztdl-p">Verify your account with your device.</p>
)}
{method && ["time-based", "sms", "email"].includes(method) ? (
{method && (
<LoginOTP
loginName={loginName}
sessionId={sessionId}
@@ -42,13 +39,6 @@ export default async function Page({
organization={organization}
method={method}
></LoginOTP>
) : (
<VerifyU2F
loginName={loginName}
sessionId={sessionId}
authRequestId={authRequestId}
organization={organization}
></VerifyU2F>
)}
</div>
</DynamicTheme>