jazzband / django-two-factor-auth

Complete Two-Factor Authentication for Django providing the easiest integration into most Django projects.
MIT License
1.71k stars 448 forks source link

Autofocus yubikey field #722

Closed kevindice closed 7 months ago

kevindice commented 7 months ago

Description

This PR addresses #289 - it autofocuses the Yubikey field. I've already forgotten to focus the field manually a few times and it will be much smoother with it auto-focusing.

Motivation and Context

When using a yubikey, we plugin the device to a USB port, and it acts like a keyboard, typing in the OTP. It's easy to forget that we need to focus the Yubikey form field, so autofocusing will help make this process smoother.

Closes #289

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

Checklist: