From aa24a86a8398fceee38be7b3abde46779e76dfc8 Mon Sep 17 00:00:00 2001 From: Stefan Sundin Date: Wed, 26 Oct 2022 19:22:01 -0700 Subject: [PATCH] Update segmented TOTP detection to work with epicgames.com. --- 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 d6bd949..f0c5c93 100644 --- a/keepassxc-browser/content/fields.js +++ b/keepassxc-browser/content/fields.js @@ -154,7 +154,7 @@ kpxcFields.getSegmentedTOTPFields = function(inputs, combinations) { // Use the form's elements addTotpFieldsToCombination(form.elements, exceptionFound); } else if (inputs.length === DEFAULT_SEGMENTED_TOTP_FIELDS && inputs.every(i => (i.inputMode === 'numeric' && i.pattern.includes('0-9')) - || (i.type === 'text' && i.maxLength === 1) + || ((i.type === 'text' || i.type === 'number') && i.maxLength === 1) || i.type === 'tel')) { // No form is found, but input fields are possibly segmented TOTP fields addTotpFieldsToCombination(inputs);