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 KPH: Custom Fields #13

Open
ususdei opened this issue Nov 27, 2021 · 0 comments
Open

Support KPH: Custom Fields #13

ususdei opened this issue Nov 27, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ususdei
Copy link
Owner

ususdei commented Nov 27, 2021

KeepassXC-Browser plugins allow to associate custom attributes with custom form fields via the KPH: prefix.

But I find the index-based association rather odd.
Thus I propose to use the input name as lookup key when filling in the credentials.

So, e.g., when you have a form like

<form>
 ...
  <input type="text" name="branch" maxlength="3" value="" id="branch" autocomplete="off">
</form>

You need do define a custom attribute KPH: branch with the value 123.
The KPH name must match the name attribute of the input field (maybe use id as a fallback).
This is not how the official browser plugins are doing it and requires the user to dig up the input names using devtools once
but I consider it a cleaner solution.

@ususdei ususdei added the enhancement New feature or request label Nov 27, 2021
@ususdei ususdei self-assigned this Nov 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant