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

オープン
#110 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DeadantCo/answerLoopsdev のほかの issue

DeadantCo/answerLoopsdev の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。