Sign-in: add bot protection to the sign-up and log-in page

Aperta
#110 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start with the sign-up and log-in page and the server-side sign-in action, then read the self-hosting docs under content/docs/ and the example env file. The issue doesn't pick a bot-protection provider, so settle that first with a maintainer. Done means that with the keys set, a missing or invalid check result is refused, with the keys unset sign-in is unchanged, and pnpm test and pnpm build pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

backend enhancement frontend

Copied from DeadantCo/answerLoops#100 · originally opened by sethr07 on 2026-11-20

Copied from https://github.com/answerLoops/answerLoops/issues/456 — originally opened by @NathanTarbert on 2026-10-23

Problem

The sign-up and log-in page is a public form that anyone, including scripts, can reach. Today nothing distinguishes a person from automated traffic before the sign-in flow starts, which invites abuse as we add more sign-in methods.

Scope

  • Add a bot-protection check to the sign-up and log-in page that runs before a sign-in method starts.
  • Make it optional and configured by environment variables, so self-hosted installs without the keys keep working and show no broken widget.
  • Verify the result on the server in the sign-in action, not only in the browser.
  • Keep the page usable on a 375px-wide phone, with no sideways scrolling and no extra clicks for real visitors where the check can run invisibly.
  • Document the new variables in the self-hosting docs under content/docs/ and the example env file.

Acceptance criteria

  • With the keys set, a sign-in attempt without a valid check result is refused with a clear message.
  • With the keys unset, sign-in behaves exactly as it does today.
  • Plan, interval, promo code and redirect still carry through after the check.
  • Tests cover both the configured and unconfigured cases.
  • pnpm test and pnpm build pass.

Related: #370, #371

Start here: new to the project? Read CONTRIBUTING.md first. It covers the ground rules, running answerLoops locally, and how to open a pull request.

Lingua principale
TypeScript
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DeadantCo/answerLoopsdev

Tutte le issue di DeadantCo/answerLoopsdev

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.