Pending course, rest ready for launch

This commit is contained in:
Marcelo
2026-03-15 13:52:11 +00:00
parent be4ca2ed78
commit 62b3cfe467
77 changed files with 6450 additions and 868 deletions

View File

@@ -5,6 +5,7 @@ type LoginPageProps = {
redirectTo?: string | string[];
role?: string | string[];
forgot?: string | string[];
switchUser?: string | string[];
}>;
};
@@ -16,6 +17,15 @@ export default async function LoginPage({ searchParams }: LoginPageProps) {
const role = Array.isArray(roleValue) ? roleValue[0] : roleValue;
const forgotValue = params.forgot;
const forgot = Array.isArray(forgotValue) ? forgotValue[0] : forgotValue;
const switchUserValue = params.switchUser;
const switchUser = Array.isArray(switchUserValue) ? switchUserValue[0] : switchUserValue;
return <LoginForm redirectTo={redirectTo ?? "/courses"} role={role} showForgot={forgot === "1"} />;
return (
<LoginForm
redirectTo={redirectTo ?? "/courses"}
role={role}
showForgot={forgot === "1"}
skipAuthedRedirect={switchUser === "1"}
/>
);
}