Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new input type for verification codes #777

Open
alejsanc opened this issue Jul 2, 2023 · 8 comments
Open

Add a new input type for verification codes #777

alejsanc opened this issue Jul 2, 2023 · 8 comments
Labels
more-info-needed The issue has been triaged and the CG needs more info to make it actionable. stale

Comments

@alejsanc
Copy link

alejsanc commented Jul 2, 2023

A verification code sent by SMS is increasingly used as double authentication. To enter this code and make it not visible it is common to use a password input. When the browser sees a password input it thinks it is a user password and gives you the opportunity to save the password. To avoid this, a new "verification-code" input could be used.

<input type="verification-code"/>

@dbaron
Copy link
Collaborator

dbaron commented Jul 5, 2023

Some prior work in this space:

@gregwhitworth gregwhitworth added the needs-research This issue needs research in order to move forward label Jul 11, 2023
@gregwhitworth
Copy link
Member

@alejsanc any reasons that the autocomplete solution provided by @dbaron won't suffice?

@gregwhitworth gregwhitworth removed the needs-research This issue needs research in order to move forward label Jul 11, 2023
@gregwhitworth gregwhitworth added the more-info-needed The issue has been triaged and the CG needs more info to make it actionable. label Jul 21, 2023
@lukewarlow
Copy link
Collaborator

@alejsanc is there anything further you'd like to add or can I go ahead and close this issue?

@lukewarlow
Copy link
Collaborator

lukewarlow commented Sep 21, 2023

Ah rereading this I guess the request is for a way to hide the contents of an input that isn't type password. Which I think is a valid request. But probably better directed to the CSSWG directly.

w3c/csswg-drafts#6788 mentions something similar (more about toggling the obfuscation of password inputs)

I would like to say that the context of this request is odd though. Why does a one time code need obscuring on entry? Anyone looking of their shoulder shouldn't have enough time to enter this code in a useful manner regardless of whether they can see it?

@openui openui deleted a comment Sep 22, 2023
@gregwhitworth
Copy link
Member

The CSSWG is not the correct location for this but WHATWG.

Why does a one time code need obscuring on entry?

+1 from me but honestly this would be easy to implement by merely duplicating the majority of password outside of the various namings.

@lukewarlow
Copy link
Collaborator

I thought csswg for a new "input-obscure" property. But yeah for a whole new input type it'd be whatwg

@alejsanc
Copy link
Author

I would like to say that the context of this request is odd though. Why does a one time code need obscuring on entry? Anyone looking of their shoulder shouldn't have enough time to enter this code in a useful manner regardless of whether they can see it?

Both by computer and manual means, the user can be stopped before using the code and give the attacker time. In general, the more barriers the attacker has, the better.

Copy link

There hasn't been any discussion on this issue for a while, so we're marking it as stale. If you choose to kick off the discussion again, we'll remove the 'stale' label.

@github-actions github-actions bot added the stale label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more-info-needed The issue has been triaged and the CG needs more info to make it actionable. stale
Projects
None yet
Development

No branches or pull requests

5 participants
@dbaron @gregwhitworth @lukewarlow @alejsanc and others