Remove age verification checkboxes, keep Turnstile CAPTCHA
- 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:
1 parent
361ff56d65
commit
1bca9657fa
2 files changed
+3
-27
No files matched your search
@@ -2,7 +2,7 @@ module.exports = {
|
|||||||
apps: [
|
apps: [
|
||||||
{
|
{
|
||||||
name: "epicnextcms",
|
name: "epicnextcms",
|
||||||
script: "node_modules/next/dist/bin/next",
|
script: "pnpm",
|
||||||
args: "start",
|
args: "start",
|
||||||
instances: "max",
|
instances: "max",
|
||||||
exec_mode: "cluster",
|
exec_mode: "cluster",
|
||||||
@@ -10,7 +10,7 @@ module.exports = {
|
|||||||
max_memory_restart: "1G",
|
max_memory_restart: "1G",
|
||||||
env: {
|
env: {
|
||||||
NODE_ENV: "production",
|
NODE_ENV: "production",
|
||||||
PORT: 3000
|
PORT: 3002
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ export function RegisterForm({
|
|||||||
const showCaptcha = captcha.provider !== "none" && !!captcha.siteKey;
|
const showCaptcha = captcha.provider !== "none" && !!captcha.siteKey;
|
||||||
const [serverError, formAction, isPending] = useActionState(register, null);
|
const [serverError, formAction, isPending] = useActionState(register, null);
|
||||||
const [termsAccepted, setTermsAccepted] = useState(false);
|
const [termsAccepted, setTermsAccepted] = useState(false);
|
||||||
const [ageVerified, setAgeVerified] = useState(false);
|
|
||||||
const [password, setPassword] = useState("");
|
const [password, setPassword] = useState("");
|
||||||
const [showPassword, setShowPassword] = useState(false);
|
const [showPassword, setShowPassword] = useState(false);
|
||||||
const [showConfirm, setShowConfirm] = useState(false);
|
const [showConfirm, setShowConfirm] = useState(false);
|
||||||
@@ -281,7 +280,7 @@ export function RegisterForm({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Terms & Age Verification */}
|
{/* Terms */}
|
||||||
<div
|
<div
|
||||||
className="rounded-xl p-4 flex gap-4"
|
className="rounded-xl p-4 flex gap-4"
|
||||||
style={{
|
style={{
|
||||||
@@ -314,29 +313,6 @@ export function RegisterForm({
|
|||||||
{t("termsAccept", { hotel: hotelName })}
|
{t("termsAccept", { hotel: hotelName })}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
|
|
||||||
{/* Captcha */}
|
{/* Captcha */}
|
||||||
|
|||||||
Reference in new issue
Block a user