From 1f883912adbd71714ac02c4c8a722863950476ae Mon Sep 17 00:00:00 2001 From: Ashus Date: Tue, 25 Jan 2022 00:24:28 +0100 Subject: [PATCH] Fix disabled OTP icons - they are never added --- keepassxc-browser/content/fields.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/keepassxc-browser/content/fields.js b/keepassxc-browser/content/fields.js index 8a0f830..d51b6d7 100644 --- a/keepassxc-browser/content/fields.js +++ b/keepassxc-browser/content/fields.js @@ -64,6 +64,9 @@ kpxcFields.getAllCombinations = async function(inputs) { // Adds segmented TOTP fields to the combination if found kpxcFields.getSegmentedTOTPFields = function(inputs, combinations) { + if (!kpxc.settings.showOTPIcon) { + return; + } const addTotpFieldsToCombination = function(inputFields) { const totpInputs = Array.from(inputFields).filter(e => e.nodeName === 'INPUT' && e.type !== 'password'); if (totpInputs.length === 6) {