checkafter redirect, continue after setup

This commit is contained in:
peintnermax
2024-04-29 16:42:24 +02:00
parent 9a9ae48cda
commit 88030ff2b9
5 changed files with 104 additions and 24 deletions

View File

@@ -20,7 +20,7 @@ export default async function Page({
}: {
searchParams: Record<string | number | symbol, string | undefined>;
}) {
const { loginName, altPassword, authRequestId, organization, sessionId } =
const { loginName, checkAfter, authRequestId, organization, sessionId } =
searchParams;
const sessionFactors = sessionId
@@ -95,6 +95,7 @@ export default async function Page({
organization={organization}
loginSettings={loginSettings}
userMethods={sessionFactors.authMethods ?? []}
checkAfter={checkAfter === "true"}
></ChooseSecondFactorToSetup>
) : (
<Alert>No second factors available to setup.</Alert>