This commit is contained in:
2026-03-23 16:39:03 -05:00
parent 65531e08c4
commit 8583ee7e66
2 changed files with 11 additions and 22 deletions

View File

@@ -1,6 +1,14 @@
import { redirect } from "next/navigation";
import { loginAction } from "@/lib/actions";
import { getSession } from "@/lib/auth";
export default async function LoginPage() {
const session = await getSession();
if (session) {
redirect("/");
}
export default function LoginPage() {
return (
<div className="grid">
<section className="panel" style={{ maxWidth: 520 }}>