mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Adjust segmented TOTP fields check
This commit is contained in:
parent
82261569e9
commit
d5bb998553
1 changed files with 3 additions and 1 deletions
|
|
@ -301,7 +301,9 @@ kpxcFields.getElementFromXPathId = function(xpath) {
|
|||
kpxcFields.handleSegmentedTOTPFields = function(inputs, combinations) {
|
||||
// Check for multiple segmented TOTP fields when there are no inputs, or combination contains the segemented fields
|
||||
const segmentedFields = combinations.filter(c => c.totp);
|
||||
if (combinations.length === 0 || segmentedFields.length === DEFAULT_SEGMENTED_TOTP_FIELDS) {
|
||||
if (combinations.length === 0
|
||||
|| segmentedFields.length === DEFAULT_SEGMENTED_TOTP_FIELDS
|
||||
|| inputs?.length === DEFAULT_SEGMENTED_TOTP_FIELDS) {
|
||||
kpxcFields.getSegmentedTOTPFields(inputs, combinations);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue