Skip to content

2FA field cannot be filled via Ctrl-V #457

Description

@V0idC0de

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions