2FA field cannot be filled via Ctrl-V

Open
#457 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale

Research direction

No file or test is named. Start at the login flow and locate the six TOTP input fields, then trace how manual digit entry advances between them. Done means pasting six digits into any field distributes them across all six fields, with automatic submission treated as optional design work.

Written by the indexing model from the issue text.

Description

enhancement

What's the problem this feature will solve?
When logging in, the TOTP field is divided into 6 individual input fields. While manually entering digits moves the cursor to the next field automatically, this behavior doesn't apply to using Ctrl-V to enter codes, i.e. when using a password manager generating TOTPs or pasting it otherwise.

Describe the solution you'd like
Input fields should respond to pasting 6 digits into any of them, by properly entering them into the 6 individual fields.
Additionally, the "Submit" may be triggered automatically, after 6 digits are entered (but this is a design decision left to you - I'd like it).

Users can then paste the TOTP and are logged in automatically, mitigating the need to paste the code somewhere and then type it in digit by digit.

Alternative Solutions
Input fields for TOTP code could be merged into one, enabling pasting codes, while keeping easy manual typing.

Additional context

Dominant language
Python
Stars
6.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

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.

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.