Merge pull request #2700 from keepassxreboot/fix/dont_fill_username_to_password_field

Do not fill username to already filled password field
This commit is contained in:
Sami Vänttinen 2025-09-23 07:22:49 +03:00 committed by GitHub
commit a9a30e7625
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -265,7 +265,7 @@ kpxcFill.fillInCredentials = async function(combination, predefinedUsername, uui
}
// Fill username
if (combination.username && usernameValue &&
if (combination.username && usernameValue && combination.username !== combination.password &&
(!combination.username.value || combination.username.value !== usernameValue)) {
if (!passOnly) {
kpxc.setValueWithChange(combination.username, usernameValue);