readthedocs / readthedocs/ext-theme

2fa: focus the code input field automatically

Open
#504 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Improvement
Dominant language
HTML
Stars
12
Forks
6
Avg merge
13h 25m
Merged PRs (30d)
1

Description

When login in with an account that has 2fa enabled I see this page:

Screenshot_2024-10-08_11-35-26

It would be good to put the focus automatically in the "Code" input field so we can paste it directly without having to focus on it first.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the login template that renders the 2FA page and its "Code" input field. Add automatic focus to that field, then verify that the field is focused on page load and that a code can be pasted immediately without clicking it.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
authentication, frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.