From df654520ce3b647e98a9294d08e9fe94da4c075e Mon Sep 17 00:00:00 2001 From: varjolintu Date: Thu, 22 Jun 2023 22:40:05 +0300 Subject: [PATCH 1/2] Add a notification with domain URL when logins are not found for a site --- 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 8f7cb02..8f82e5a 100644 --- a/keepassxc-browser/content/fill.js +++ b/keepassxc-browser/content/fill.js @@ -192,7 +192,8 @@ kpxcFill.fillSegmentedTotp = function(elem, val, totpInputs) { kpxcFill.fillFromUsernameIcon = async function(combination) { await kpxc.receiveCredentialsIfNecessary(); if (kpxc.credentials.length === 0) { - logDebug('Error: Credential list is empty.'); + logDebug(`Error: Credential list is empty for: ${document.location.origin}`); + kpxcUI.createNotification('error', `${tr('credentialsNoLoginsFound')} ${document.location.origin}`); return; } else if (kpxc.credentials.length > 1 && kpxc.settings.autoCompleteUsernames) { kpxcUserAutocomplete.showList(combination.username || combination.password); From 585a42772345fe1b0724d99076ccf491e3f5780b Mon Sep 17 00:00:00 2001 From: varjolintu Date: Fri, 23 Jun 2023 07:33:35 +0300 Subject: [PATCH 2/2] Add same messages to context menu fill --- 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 8f82e5a..2033442 100644 --- a/keepassxc-browser/content/fill.js +++ b/keepassxc-browser/content/fill.js @@ -25,7 +25,8 @@ kpxcFill.fillAttributeToActiveElementWith = async function(attr) { kpxcFill.fillInFromActiveElement = async function(passOnly = false) { await kpxc.receiveCredentialsIfNecessary(); if (kpxc.credentials.length === 0) { - logDebug('Error: Credential list is empty.'); + logDebug(`Error: Credential list is empty for: ${document.location.origin}`); + kpxcUI.createNotification('error', `${tr('credentialsNoLoginsFound')} ${document.location.origin}`); return; }