Support configurable login form selectors for non-standard label names
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- accessibility, authentication
Research direction
Start at the auth action where getByLabel(/user ?name/i) and getByLabel(/password/i) locate login fields, then inspect how optional inputs are defined. Support configurable username_selector and password_selector values plus the proposed input-type fallbacks, and verify that non-standard or label-free forms are detected and scanned authenticated.
Written by the indexing model from the issue text.
Description
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
placeholderattributes
When no match is found, the login form is not detected and the scanner proceeds unauthenticated.
Suggested fix
- Fall back to input types when label matching fails:
input[type="password"]for the password field, and the closest precedinginput[type="text"]orinput[type="email"]for the username field. - Make selectors configurable via optional inputs like
username_selectorandpassword_selector, so users can specify their own labels, placeholders, or CSS selectors for non-standard forms.
- Dominant language
- TypeScript
- Stars
- 374
- Forks
- 42
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 10
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/accessibility-scanner
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/accessibility-scanner#264 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
github/accessibility-scanner#260 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
github/accessibility-scanner#259 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 58/100
github/accessibility-scanner#245 ·
-
Sitemap Support Open
Difficulty 5/5 Over a week Newbie friendliness 35/100
github/accessibility-scanner#244 ·
All issues in github/accessibility-scanner
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
fil-donadoni/tolaria#4409 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
corsairdev/corsair#1764 ·