mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-15 19:33:44 +00:00
otp url template, reset with authrequest
This commit is contained in:
@@ -5,6 +5,7 @@ import { UserAvatar } from "@/components/user-avatar";
|
||||
import { loadMostRecentSession } from "@/lib/session";
|
||||
import { getBrandingSettings, getLoginSettings } from "@/lib/zitadel";
|
||||
import { getLocale, getTranslations } from "next-intl/server";
|
||||
import { headers } from "next/headers";
|
||||
|
||||
export default async function Page(props: {
|
||||
searchParams: Promise<Record<string | number | symbol, string | undefined>>;
|
||||
@@ -30,6 +31,8 @@ export default async function Page(props: {
|
||||
|
||||
const loginSettings = await getLoginSettings(organization);
|
||||
|
||||
const host = (await headers()).get("host");
|
||||
|
||||
return (
|
||||
<DynamicTheme branding={branding}>
|
||||
<div className="flex flex-col items-center space-y-4">
|
||||
@@ -67,6 +70,8 @@ export default async function Page(props: {
|
||||
organization={organization}
|
||||
method={method}
|
||||
loginSettings={loginSettings}
|
||||
host={host}
|
||||
code={code}
|
||||
></LoginOTP>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user