feat(setup): add initial setup wizard for admin account and SMTP configuration

This commit is contained in:
DanielS
2026-07-03 09:55:24 +02:00
parent f5f577ea73
commit 6dc1b1c00c
6 changed files with 560 additions and 2 deletions

View File

@@ -1,6 +1,12 @@
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");
}
export default function Page() {
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">