Changes
Co-authored-by: wolfoftyreso-debug <250630591+wolfoftyreso-debug@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user