18 lines
438 B
TypeScript
18 lines
438 B
TypeScript
import { LoginForm } from "@/components/login-form";
|
|
import { isSetupNeeded } from "@/lib/actions/setup";
|
|
import { redirect } from "next/navigation";
|
|
|
|
export default async function Page() {
|
|
if (await isSetupNeeded()) {
|
|
redirect("/setup");
|
|
}
|
|
|
|
return (
|
|
<div className="flex min-h-svh w-full items-center justify-center p-6 md:p-10">
|
|
<div className="w-full max-w-sm">
|
|
<LoginForm />
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|