From b785221d4e40dcb86c66f0f0a78231f6e9f64751 Mon Sep 17 00:00:00 2001 From: varjolintu Date: Thu, 1 Feb 2024 16:23:55 +0200 Subject: [PATCH] Do not clear the username field if the entry has no username set --- keepassxc-browser/content/fill.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/keepassxc-browser/content/fill.js b/keepassxc-browser/content/fill.js index bb78cca..d471436 100644 --- a/keepassxc-browser/content/fill.js +++ b/keepassxc-browser/content/fill.js @@ -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); }