mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Add support for autocomplete=username
This commit is contained in:
parent
b186eb1fd2
commit
f19c90cc08
1 changed files with 5 additions and 1 deletions
|
|
@ -46,7 +46,11 @@ kpxcFields.getAllCombinations = async function(inputs) {
|
|||
}
|
||||
}
|
||||
|
||||
if (kpxc.singleInputEnabledForPage && combinations.length === 0 && usernameField) {
|
||||
// Allow single input if autocomplete="username" is present, or Username-Only Detection is enabled for the page
|
||||
const autoComplete = usernameField?.getLowerCaseAttribute('autocomplete');
|
||||
if (combinations.length === 0 && usernameField &&
|
||||
(kpxc.singleInputEnabledForPage || autoComplete?.includes('username') || autoComplete?.includes('email'))
|
||||
) {
|
||||
const combination = {
|
||||
username: usernameField,
|
||||
password: null,
|
||||
|
|
|
|||
Loading…
Reference in a new issue