Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Support configurable login form selectors for non-standard label names

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

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

評価

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

調査の方向性

getByLabel(/user ?name/i) と getByLabel(/password/i) でログインフィールドを特定している認証アクションから始め、オプションの入力がどのように定義されているかを確認します。設定可能な username_selector と password_selector の値、および提案されている input-type のフォールバックをサポートし、標準外のフォームやラベルのないフォームが検出され、認証済みとしてスキャンされることを確認します。

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

説明

Problem

The auth action finds login fields using getByLabel(/user ?name/i) and getByLabel(/password/i). This misses common login forms:

  • Email-based login: "Email", "E-Mail" don't match /user ?name/i
  • Non-English apps: "Benutzername", "Mot de passe" don't match
  • No visible labels: Forms using only placeholder attributes

When no match is found, the login form is not detected and the scanner proceeds unauthenticated.

Suggested fix

  1. Fall back to input types when label matching fails: input[type="password"] for the password field, and the closest preceding input[type="text"] or input[type="email"] for the username field.
  2. Make selectors configurable via optional inputs like username_selector and password_selector, so users can specify their own labels, placeholders, or CSS selectors for non-standard forms.
主要言語
TypeScript
スター
374
フォーク
42
平均マージ
1日 13時間
マージ済み PR(30日)
7

環境構築

はじめの一歩

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

github/accessibility-scanner のほかの issue

github/accessibility-scanner の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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