prompt when loginsetting, escape prompt when alt

This commit is contained in:
Max Peintner
2023-07-03 17:05:55 +02:00
parent e529401ff2
commit 54388e4d8f
10 changed files with 122 additions and 57 deletions

View File

@@ -9,7 +9,7 @@ export default async function Page({
}: {
searchParams: Record<string | number | symbol, string | undefined>;
}) {
const { loginName } = searchParams;
const { loginName, promptPasswordless, alt } = searchParams;
const sessionFactors = await loadSession(loginName);
async function loadSession(loginName?: string) {
@@ -44,7 +44,11 @@ export default async function Page({
></UserAvatar>
)}
<PasswordForm loginName={loginName} />
<PasswordForm
loginName={loginName}
promptPasswordless={promptPasswordless === "true"}
isAlternative={alt === "true"}
/>
</div>
);
}