From 9e59c11b72828854302f3ddbe96d0cdf1cd03f83 Mon Sep 17 00:00:00 2001 From: varjolintu Date: Thu, 4 Aug 2022 08:59:36 +0300 Subject: [PATCH] Ignore hidden inputs with segmented TOTP fields --- keepassxc-browser/content/fields.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keepassxc-browser/content/fields.js b/keepassxc-browser/content/fields.js index 3b0c9e1..a2db5a5 100644 --- a/keepassxc-browser/content/fields.js +++ b/keepassxc-browser/content/fields.js @@ -93,7 +93,7 @@ kpxcFields.getSegmentedTOTPFields = function(inputs, combinations) { return; } const addTotpFieldsToCombination = function(inputFields) { - const totpInputs = Array.from(inputFields).filter(e => e.nodeName === 'INPUT' && e.type !== 'password'); + const totpInputs = Array.from(inputFields).filter(e => e.nodeName === 'INPUT' && e.type !== 'password' && e.type !== 'hidden'); if (totpInputs.length === 6) { const combination = { form: form,