mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #1363 from keepassxreboot/fix/apple_totp
Fix filling TOTP on Apple login page
This commit is contained in:
commit
ef45c45838
1 changed files with 6 additions and 2 deletions
|
|
@ -393,7 +393,10 @@ kpxcFields.getSegmentedTOTPFields = function(inputs, combinations) {
|
|||
if (totpInputs.length === 6) {
|
||||
const combination = {
|
||||
form: form,
|
||||
totpInputs: totpInputs
|
||||
totpInputs: totpInputs,
|
||||
username: null,
|
||||
password: null,
|
||||
passwordInputs: []
|
||||
};
|
||||
|
||||
combinations.push(combination);
|
||||
|
|
@ -415,7 +418,8 @@ kpxcFields.getSegmentedTOTPFields = function(inputs, combinations) {
|
|||
|| form.length === 6))) {
|
||||
// Use the form's elements
|
||||
addTotpFieldsToCombination(form.elements);
|
||||
} else if (inputs.length === 6 && inputs.every(i => i.inputMode === 'numeric' && i.pattern.includes('0-9'))) {
|
||||
} else if (inputs.length === 6 && inputs.every(i => (i.inputMode === 'numeric' && i.pattern.includes('0-9'))
|
||||
|| i.type === 'tel')) {
|
||||
// No form is found, but input fields are possibly segmented TOTP fields
|
||||
addTotpFieldsToCombination(inputs);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue