Remove bootstrap signup page
Deploy / deploy (push) Failing after 4m11s

Admin account has been created; the one-time setup page is no longer
needed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
twotalesanimation
2026-08-18 16:33:54 +02:00
parent 457469decd
commit f1c6020e5c
4 changed files with 1 additions and 153 deletions
-62
View File
@@ -1,62 +0,0 @@
"use client";
import { useActionState } from "react";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { Card, CardContent } from "@/components/ui/card";
import { createFirstUser, type CreateFirstUserState } from "@/actions/setup";
const initialState: CreateFirstUserState = {};
export function SignupForm() {
const [state, action, pending] = useActionState(createFirstUser, initialState);
if (state.success) {
return (
<Card>
<CardContent className="space-y-4 text-center">
<p className="text-sm">
Account created. You can delete the signup page now — sign in at{" "}
<a href="/login" className="text-amber-500 underline">
/login
</a>
.
</p>
</CardContent>
</Card>
);
}
return (
<Card>
<CardContent>
<form action={action} className="space-y-4">
<div className="space-y-1.5">
<Label htmlFor="name">Name (optional)</Label>
<Input id="name" name="name" autoComplete="name" />
</div>
<div className="space-y-1.5">
<Label htmlFor="email">Email</Label>
<Input id="email" name="email" type="email" autoComplete="email" required />
</div>
<div className="space-y-1.5">
<Label htmlFor="password">Password</Label>
<Input
id="password"
name="password"
type="password"
autoComplete="new-password"
required
minLength={8}
/>
</div>
{state.error && <p className="text-sm text-destructive">{state.error}</p>}
<Button type="submit" className="w-full" disabled={pending}>
{pending ? "Creating…" : "Create account"}
</Button>
</form>
</CardContent>
</Card>
);
}