mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-31 06:59:33 +02:00
add params
This commit is contained in:
parent
d144704066
commit
d7d4828871
1 changed files with 8 additions and 2 deletions
|
@ -2,7 +2,11 @@ import LoginForm from "@app/components/LoginForm";
|
|||
import { verifySession } from "@app/lib/verifySession";
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export default async function Page() {
|
||||
export async function Page({
|
||||
searchParams,
|
||||
}: {
|
||||
searchParams: { [key: string]: string | string[] | undefined };
|
||||
}) {
|
||||
const user = await verifySession();
|
||||
|
||||
if (user) {
|
||||
|
@ -11,7 +15,9 @@ export default async function Page() {
|
|||
|
||||
return (
|
||||
<>
|
||||
<LoginForm redirect={"test"} />
|
||||
<LoginForm redirect={searchParams.redirect as string} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default Page;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue