From d5bb9985539a28c582dd62a8a68b51c7a407d76d Mon Sep 17 00:00:00 2001 From: varjolintu Date: Mon, 20 Nov 2023 19:57:01 +0200 Subject: [PATCH] Adjust segmented TOTP fields check --- keepassxc-browser/content/fields.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/keepassxc-browser/content/fields.js b/keepassxc-browser/content/fields.js index 4f18a5c..d27f0a2 100644 --- a/keepassxc-browser/content/fields.js +++ b/keepassxc-browser/content/fields.js @@ -301,7 +301,9 @@ kpxcFields.getElementFromXPathId = function(xpath) { kpxcFields.handleSegmentedTOTPFields = function(inputs, combinations) { // Check for multiple segmented TOTP fields when there are no inputs, or combination contains the segemented fields const segmentedFields = combinations.filter(c => c.totp); - if (combinations.length === 0 || segmentedFields.length === DEFAULT_SEGMENTED_TOTP_FIELDS) { + if (combinations.length === 0 + || segmentedFields.length === DEFAULT_SEGMENTED_TOTP_FIELDS + || inputs?.length === DEFAULT_SEGMENTED_TOTP_FIELDS) { kpxcFields.getSegmentedTOTPFields(inputs, combinations); }