Merge pull request #1169 from keepassxreboot/fix/improve_form_handling

Improve form handling with credential saving
This commit is contained in:
Sami Vänttinen 2021-01-11 06:59:25 +02:00 committed by GitHub
commit 6c88696e3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -261,6 +261,11 @@ kpxcForm.onSubmit = async function(e) {
form = kpxcSites.savedForm;
}
// Still not found? Try using the first one from kpxcForm.savedForms
if (!form && kpxcForm.savedForms.length > 0) {
form = kpxcForm.savedForms[0].form;
}
if (!form) {
return;
}