feat(setup): add initial setup wizard for admin account and SMTP configuration
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user