mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-10 20:02:26 +00:00
18 lines
367 B
TypeScript
18 lines
367 B
TypeScript
import LoginForm from "@app/components/LoginForm";
|
|
import { verifySession } from "@app/lib/verifySession";
|
|
import { redirect } from "next/navigation";
|
|
|
|
export default async function Page() {
|
|
const user = await verifySession();
|
|
|
|
if (user) {
|
|
redirect("/");
|
|
}
|
|
|
|
return (
|
|
<>
|
|
<LoginForm redirect={"test"} />
|
|
</>
|
|
);
|
|
}
|