2024-10-06 18:08:26 -04:00
|
|
|
import LoginForm from "@app/components/LoginForm";
|
|
|
|
import { verifySession } from "@app/lib/verifySession";
|
|
|
|
import { redirect } from "next/navigation";
|
2024-10-06 09:55:45 -04:00
|
|
|
|
2024-10-06 18:09:12 -04:00
|
|
|
export async function Page() {
|
2024-10-06 18:08:26 -04:00
|
|
|
const { user } = await verifySession();
|
2024-10-06 09:55:45 -04:00
|
|
|
|
2024-10-06 18:08:26 -04:00
|
|
|
if (user) {
|
|
|
|
redirect("/");
|
2024-10-06 09:55:45 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
return (
|
2024-10-06 18:08:26 -04:00
|
|
|
<>
|
2024-10-06 18:09:12 -04:00
|
|
|
<LoginForm redirect={"test"} />
|
2024-10-06 18:08:26 -04:00
|
|
|
</>
|
2024-10-06 09:55:45 -04:00
|
|
|
);
|
|
|
|
}
|
2024-10-06 18:08:26 -04:00
|
|
|
|
|
|
|
export default Page;
|
2024-10-06 18:09:12 -04:00
|
|
|
|