The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Sign-in page: no "Studio owner" link on the public site
Adarsh75e56855d239
diff --git a/docs/public-signup.md b/docs/public-signup.mdindex 078d3254..ce2c3e29 100644--- a/docs/public-signup.md+++ b/docs/public-signup.md@@ -37,8 +37,9 @@ studios can show prices.- Sign up at `/login?signup=1` (`POST /api/auth/signup` with `{ "email", "password" }`). Thepassword needs at least 8 characters. There is no email verification.- Log in at `/login` (`POST /api/auth/login` with `{ "email", "password" }`). The install password- still works as before: `POST /api/auth/login` with `{ "password" }`, or **Studio owner** on the- login page.+ still works as before: `POST /api/auth/login` with `{ "password" }`, or the owner's sign-in at+ `/login?owner=1`. The login page links to it only in development, so a public site doesn't+ advertise it.- Accounts are stored in `auth.json` in the data folder: the email in lower case, a salted scrypthash of the password (the same scheme as the install password), and the creation time.- Sign-up and log-in attempts are rate limited per visitor (set `FUOBE_TRUST_PROXY=1` behind adiff --git a/src/components/login-form.tsx b/src/components/login-form.tsxindex a7c1fa3a..11491383 100644--- a/src/components/login-form.tsx+++ b/src/components/login-form.tsx@@ -12,6 +12,9 @@ import { safeNext } from "@/lib/safe-redirect";/** "signup" and "login" are accounts (public sign-up); "owner" is the install password. */type Mode = "signup" | "login" | "owner";+/** On a public site the owner's sign-in isn't advertised: production builds open it at /login?owner=1. */+const OWNER_LINK = process.env.NODE_ENV !== "production";+const COPY: Record<Mode, { title: string; lead: string; button: string }> = {signup: { title: "Create your free account", lead: "An email and a password, and you're in. No verification.", button: "Sign up" },login: { title: "Welcome back", lead: "Log in with your email and password.", button: "Log in" },@@ -23,7 +26,7 @@ export function LoginForm() {const viewer = useViewer();const open = !!viewer.data?.publicSignup;const [chosen, setChosen] = useState<Mode | null>(null);- const mode: Mode = !open ? "owner" : (chosen ?? (params.get("signup") === "1" ? "signup" : "login"));+ const mode: Mode = !open ? "owner" : (chosen ?? (params.get("owner") === "1" ? "owner" : params.get("signup") === "1" ? "signup" : "login"));const [email, setEmail] = useState("");const [password, setPassword] = useState("");const [error, setError] = useState<string | null>(null);@@ -115,7 +118,7 @@ export function LoginForm() {<Link href={next} className="underline-offset-4 hover:underline">Keep browsing as a guest</Link>- {mode !== "owner" && (+ {OWNER_LINK && mode !== "owner" && (<>{" · "}<button type="button" className="underline-offset-4 hover:underline" onClick={() => choose("owner")}>