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

Ouverte
#110 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
38/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
typescript

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
TypeScript
Étoiles
0
Forks
0
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de DeadantCo/answerLoopsdev

Toutes les issues de DeadantCo/answerLoopsdev

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.