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

Support numeric inputmode #207

Open
varac opened this issue Sep 2, 2021 · 4 comments
Open

Support numeric inputmode #207

varac opened this issue Sep 2, 2021 · 4 comments
Labels

Comments

@varac
Copy link

varac commented Sep 2, 2021

I have a website with uses a number as login, with the following input field:

<input class="form-control" id="customer-no_input" name="username" type="number" value="" placeholder="Kund*innen-Nr.*" required="required" aria-required="true" pattern="[0-9]*" inputmode="numeric">

My gopass entry is like this:

mySecret
---
user: 123456

When trying to auto-fill, I only get a little browser hint Please enter a number.

@mjanser
Copy link

mjanser commented Apr 1, 2022

I have a similar issue, but in my case the input field is of type tel.

Example:

<input formcontrolname="username" id="username" autocomplete="username" class="form-control contract ng-pristine ng-invalid detect ng-touched" type="tel" aria-describedby="" pattern="/\d{5}-\d{4}/">

@martinhoefling
Copy link
Collaborator

Have you tried to store it as user: "0171123456" ? If it's a yaml based secret, the 0 is stripped in gopass.

@mjanser
Copy link

mjanser commented Apr 9, 2022

I don't know the code of this extension, but isn't the following part restricting login inputs to text and email?

loginInputTypes = ['email', 'text'],

At least this seems to be the case because the field in my example just gets not filled.

@keachi
Copy link

keachi commented Nov 26, 2023

I have a similar issue, but in my case the input field is of type tel.

Example:

<input formcontrolname="username" id="username" autocomplete="username" class="form-control contract ng-pristine ng-invalid detect ng-touched" type="tel" aria-describedby="" pattern="/\d{5}-\d{4}/">

I have the same issue. After I modified the website in my code inspector to type="text" the extension found the input field. I suggest we extend loginInputTypes with 'tel'.

@martinhoefling what do you think about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants