Merge pull request #1755 from stefansundin/epicgames-totp

Update segmented TOTP detection to work with epicgames.com
This commit is contained in:
Sami Vänttinen 2022-11-02 21:27:12 +02:00 committed by GitHub
commit 2a6ef03846
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);