mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Do not clear the username field if the entry has no username set
This commit is contained in:
parent
8bcd8b54fe
commit
b785221d4e
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue