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

Abierto
#110 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
38/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
0
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de DeadantCo/answerLoopsdev

Todos los issues de DeadantCo/answerLoopsdev

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.