mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 22:33:34 +00:00
searchparam
This commit is contained in:
@@ -4,11 +4,15 @@ import PasswordForm from "#/ui/PasswordForm";
|
||||
import UserAvatar from "#/ui/UserAvatar";
|
||||
import { getMostRecentCookieWithLoginname } from "#/utils/cookies";
|
||||
|
||||
export default async function Page({ searchParams }: { searchParams: any }) {
|
||||
export default async function Page({
|
||||
searchParams,
|
||||
}: {
|
||||
searchParams: Record<string | number | symbol, string | undefined>;
|
||||
}) {
|
||||
const { loginName } = searchParams;
|
||||
const sessionFactors = await loadSession(loginName);
|
||||
|
||||
async function loadSession(loginName: string) {
|
||||
async function loadSession(loginName?: string) {
|
||||
try {
|
||||
const recent = await getMostRecentCookieWithLoginname(loginName);
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ type Inputs = {
|
||||
};
|
||||
|
||||
type Props = {
|
||||
loginName: string;
|
||||
loginName?: string;
|
||||
};
|
||||
|
||||
export default function PasswordForm({ loginName }: Props) {
|
||||
|
||||
Reference in New Issue
Block a user