Skip to content

Commit

Permalink
Merge pull request keepassxreboot#2106 from keepassxreboot/fix/dont_c…
Browse files Browse the repository at this point in the history
…lear_username

Do not clear the username field if the entry has no username set
  • Loading branch information
varjolintu authored Feb 2, 2024
2 parents 8bcd8b5 + b785221 commit d713bf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion keepassxc-browser/content/fill.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ kpxcFill.fillInCredentials = async function(combination, predefinedUsername, uui
}

// Fill username
if (combination.username && (!combination.username.value || combination.username.value !== usernameValue)) {
if (combination.username && usernameValue &&
(!combination.username.value || combination.username.value !== usernameValue)) {
if (!passOnly) {
kpxc.setValueWithChange(combination.username, usernameValue);
}
Expand Down

0 comments on commit d713bf4

Please sign in to comment.