Remove age verification checkboxes, keep Turnstile CAPTCHA
CI / check (push) Successful in 54s
CI / release (push) Skipped
CI / deploy (push) Successful in 2m16s

- Remove age verification (18+) checkboxes from register form
- Terms checkbox remains
- Turnstile CAPTCHA stays further down in form
- All TypeScript and biome checks pass
This commit is contained in:
openhands committed 2026-08-14 16:57:17 +02:00
1 parent 361ff56d65
commit 1bca9657fa
2 files changed
+3 -27

No files matched your search

+1 -25
View File
@@ -42,7 +42,6 @@ export function RegisterForm({
const showCaptcha = captcha.provider !== "none" && !!captcha.siteKey;
const [serverError, formAction, isPending] = useActionState(register, null);
const [termsAccepted, setTermsAccepted] = useState(false);
const [ageVerified, setAgeVerified] = useState(false);
const [password, setPassword] = useState("");
const [showPassword, setShowPassword] = useState(false);
const [showConfirm, setShowConfirm] = useState(false);
@@ -281,7 +280,7 @@ export function RegisterForm({
</div>
</div>
{/* Terms & Age Verification */}
{/* Terms */}
<div
className="rounded-xl p-4 flex gap-4"
style={{
@@ -314,29 +313,6 @@ export function RegisterForm({
{t("termsAccept", { hotel: hotelName })}
</label>
</div>
<div className="flex items-center gap-2">
<input
type="checkbox"
id="ageVerified"
name="ageVerified"
checked={ageVerified}
onChange={(e) => setAgeVerified(e.target.checked)}
className="w-5 h-5 rounded border-2 accent-(--color-primary) shrink-0 cursor-pointer"
/>
<label
htmlFor="ageVerified"
className="font-medium text-sm text-[var(--color-text-readable)]"
onClick={() => setAgeVerified(!ageVerified)}
onKeyDown={(e) => {
if (e.key === "Enter" || e.key === " ") {
e.preventDefault();
setAgeVerified(!ageVerified);
}
}}
>
{t("ageVerified", { hotel: hotelName })}
</label>
</div>
</div>
{/* Captcha */}