From df654520ce3b647e98a9294d08e9fe94da4c075e Mon Sep 17 00:00:00 2001 From: varjolintu Date: Thu, 22 Jun 2023 22:40:05 +0300 Subject: [PATCH] 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);