Consider using an appropriate HTML field type for 2FA/TOTP #191572
-
🏷️ Discussion TypeProduct Feedback 💬 Feature/Topic AreaOther BodyAt some point, I noticed that the GitHub 2FA input field is implemented as a generic text field. THIS IS NOT A FUNCTIONAL PROBLEM by itself, but it may reduce compatibility with some password managers that support TOTP autofill based on the HTML field type or related form semantics. Since GitHub has been expanding and enforcing 2FA adoption, improving this part of the login experience could make authentication more convenient for many users who rely on password managers with built-in TOTP support. In practice, this may be a relatively small frontend adjustment, but it could have a meaningful impact on usability and accessibility. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Hi @dsalazarCazanhas — this is a thoughtful observation! Quick Fact CheckInterestingly, GitHub already uses So the semantic hint is already there! Why Some Password Managers Still StruggleThe issue you're experiencing may be specific to certain password managers:
Additional Improvements You Could SuggestBeyond
These would improve mobile usability without breaking existing password manager compatibility. Bottom LineYour feedback is valid, but GitHub has already implemented the core semantic attribute ( Great suggestion regardless — every bit of usability improvement helps as GitHub enforces 2FA more broadly. |
Beta Was this translation helpful? Give feedback.
Hi @dsalazarCazanhas — this is a thoughtful observation!
Quick Fact Check
Interestingly, GitHub already uses
autocomplete="one-time-code"on their 2FA input field [citation:6]. A GitHub staff member confirmed this in a 2021 discussion [citation:6].So the semantic hint is already there!
Why Some Password Managers Still Struggle
The issue you're experiencing may be specific to certain password managers:
autocomplete="one-time-code"Additi…