mirror of
https://github.com/fosrl/pangolin.git
synced 2025-09-01 07:20:06 +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 { verifySession } from "@app/lib/verifySession";
|
||||||
import { redirect } from "next/navigation";
|
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();
|
const user = await verifySession();
|
||||||
|
|
||||||
if (user) {
|
if (user) {
|
||||||
|
@ -11,7 +15,9 @@ export default async function Page() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<LoginForm redirect={"test"} />
|
<LoginForm redirect={searchParams.redirect as string} />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default Page;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue