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

Aberta
#110 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
38/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
typescript

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
TypeScript
Estrelas
0
Forks
0
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de DeadantCo/answerLoopsdev

Todas as issues de DeadantCo/answerLoopsdev

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.