Pending course, rest ready for launch
This commit is contained in:
@@ -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"}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user