Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc-browser.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSami Vänttinen <sami.vanttinen@ahmala.org>2022-11-02 22:27:12 +0300
committerGitHub <noreply@github.com>2022-11-02 22:27:12 +0300
commit2a6ef038460fbd962df74974afa680eff98880d0 (patch)
tree3b829c9b3b76e66c94cdf6ea9644b484ea6711e7
parentaf7e36803faaa3526283533c1812b75397206094 (diff)
parentaa24a86a8398fceee38be7b3abde46779e76dfc8 (diff)
Merge pull request #1755 from stefansundin/epicgames-totp
Update segmented TOTP detection to work with epicgames.com
-rw-r--r--keepassxc-browser/content/fields.js2
1 files changed, 1 insertions, 1 deletions
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);