From 0f2e5868346a718bf397507477d92d60e29f2b1f Mon Sep 17 00:00:00 2001 From: varjolintu Date: Sat, 21 Aug 2021 19:40:34 +0300 Subject: [PATCH] Fix segmented TOTP with text type --- keepassxc-browser/content/keepassxc-browser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/keepassxc-browser/content/keepassxc-browser.js b/keepassxc-browser/content/keepassxc-browser.js index 835c303..5b897d1 100755 --- a/keepassxc-browser/content/keepassxc-browser.js +++ b/keepassxc-browser/content/keepassxc-browser.js @@ -419,6 +419,7 @@ kpxcFields.getSegmentedTOTPFields = function(inputs, combinations) { // Use the form's elements addTotpFieldsToCombination(form.elements); } else if (inputs.length === 6 && inputs.every(i => (i.inputMode === 'numeric' && i.pattern.includes('0-9')) + || (i.type === 'text' && i.maxLength == 1) || i.type === 'tel')) { // No form is found, but input fields are possibly segmented TOTP fields addTotpFieldsToCombination(inputs);