mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #2566 from keepassxreboot/fix/query_form_on_savedform_check
Query form on savedForms check
This commit is contained in:
commit
dac9ceceff
1 changed files with 6 additions and 1 deletions
|
|
@ -48,7 +48,12 @@ kpxcForm.formIdentified = function(form) {
|
|||
kpxcForm.getCredentialFieldsFromForm = function(form) {
|
||||
for (const savedForm of kpxcForm.savedForms) {
|
||||
if (savedForm.form === form) {
|
||||
return [ savedForm.username, savedForm.password, savedForm.passwordInputs, savedForm.totp ];
|
||||
// If savedForm has no values, query the form instead
|
||||
return [
|
||||
savedForm.username || form?.querySelector('input[type=text]'),
|
||||
savedForm.password || form?.querySelector('input[type=password]'),
|
||||
savedForm.passwordInputs,
|
||||
savedForm.totp ];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue