Cloudflare Turnstile on e-mail sign-up and password reset, and a limit per address

- The sign-up and "forgot password" forms carry a token from Cloudflare
  Turnstile's widget (managed, shown only when Cloudflare asks for a
  click); the backend checks it before an e-mail goes out. Off without
  TURNSTILE_SITE_KEY and TURNSTILE_SECRET_KEY (development); the site key
  comes to the page through /v1/config.
- At most ten such e-mail requests an hour per visitor address, so a
  script cannot make the site mail thousands of strangers.
- The privacy notice (HU, EN) mentions Turnstile with Cloudflare.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-26 16:43:07 +00:00
co-authored by Claude Opus 5.5
parent fa46dcb757
commit 469f321ac0
14 changed files with 285 additions and 11 deletions
+3
View File
@@ -110,6 +110,9 @@ services:
S3_ENDPOINT: ${S3_ENDPOINT:-}
S3_BUCKET: ${S3_BUCKET:-}
S3_REGION: ${S3_REGION:-us-east-1}
# Cloudflare Turnstile on the e-mail sign-up and reset forms (the
# TURNSTILE_SECRET_KEY is in .env.secrets). Without both: no check.
TURNSTILE_SITE_KEY: ${TURNSTILE_SITE_KEY:-}
# The log also goes to the logs volume, one file a day, kept 30 days
# (deploy/README.md: Logs).
LOG_DIR: /logs