We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dccf307 + 064d27b commit a274819Copy full SHA for a274819
keepassxc-browser/content/form.js
@@ -229,7 +229,11 @@ kpxcForm.onSubmit = async function(e) {
229
}
230
231
const [ usernameField, passwordField, passwordInputs ] = kpxcForm.getCredentialFieldsFromForm(form);
232
- const usernameValue = await kpxcForm.getUsernameValue(usernameField);
+
233
+ // Use the first text field in the form if only username input is missing
234
+ const usernameValue = await kpxcForm.getUsernameValue(!usernameField && passwordField
235
+ ? form?.querySelector('input[type=text]')
236
+ : usernameField);
237
await kpxcForm.activateCredentialBanner(usernameValue, passwordInputs, passwordField);
238
};
239
0 commit comments