Co-authored-by: wolfoftyreso-debug <250630591+wolfoftyreso-debug@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-07-12 14:03:04 +00:00
parent 0d67ea8124
commit 5df1ce68fa
+9
View File
@@ -190,6 +190,15 @@ const PlansSection = () => {
return; 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()) { if (!hasPaymentsConfigured()) {
toast.error("Betalningar är inte konfigurerade ännu."); toast.error("Betalningar är inte konfigurerade ännu.");
return; return;