From 5df1ce68fa464e00590511dad919ffd66c58845c Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 12 Jul 2026 14:03:04 +0000 Subject: [PATCH] Changes Co-authored-by: wolfoftyreso-debug <250630591+wolfoftyreso-debug@users.noreply.github.com> --- src/components/PlansSection.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/components/PlansSection.tsx b/src/components/PlansSection.tsx index 119433f..fe64b66 100644 --- a/src/components/PlansSection.tsx +++ b/src/components/PlansSection.tsx @@ -190,6 +190,15 @@ const PlansSection = () => { return; } + // Password required for guests (auto-create account) + if (!user) { + const pw = form.password || ""; + if (pw.length < 8) { + setErrors((prev) => ({ ...prev, password: "Lösenordet måste vara minst 8 tecken" })); + return; + } + } + if (!hasPaymentsConfigured()) { toast.error("Betalningar är inte konfigurerade ännu."); return;