Do not clear the username field if the entry has no username set

This commit is contained in:
varjolintu 2024-02-01 16:23:55 +02:00
parent 8bcd8b54fe
commit b785221d4e

View file

@ -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);
}