mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Add form length check if no TOTP ids are found
This commit is contained in:
parent
ab485379a6
commit
7fcfc82a04
1 changed files with 2 additions and 1 deletions
|
|
@ -388,7 +388,8 @@ kpxcFields.getAllCombinations = async function(inputs) {
|
|||
// Adds segmented TOTP fields to the combination if found
|
||||
kpxcFields.getSegmentedTOTPFields = function(inputs, combinations) {
|
||||
const form = inputs.length > 0 ? inputs[0].form : undefined;
|
||||
if (acceptedOTPFields.some(f => form.className.includes(f) || form.id.includes(f) || form.name.includes(f))) {
|
||||
if (acceptedOTPFields.some(f => form.className.includes(f) || form.id.includes(f) || form.name.includes(f))
|
||||
|| form.length === 6) {
|
||||
const totpInputs = Array.from(form.elements).filter(e => e.nodeName === 'INPUT' && e.type !== 'password');
|
||||
if (totpInputs.length === 6) {
|
||||
const combination = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue