Merge pull request #1693 from keepassxreboot/fix/slack_segmented_totp

Ignore hidden inputs with segmented TOTP fields
This commit is contained in:
Sami Vänttinen 2022-08-04 21:38:18 +03:00 committed by GitHub
commit 279b1ec863
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,7 +93,7 @@ kpxcFields.getSegmentedTOTPFields = function(inputs, combinations) {
return;
}
const addTotpFieldsToCombination = function(inputFields) {
const totpInputs = Array.from(inputFields).filter(e => e.nodeName === 'INPUT' && e.type !== 'password');
const totpInputs = Array.from(inputFields).filter(e => e.nodeName === 'INPUT' && e.type !== 'password' && e.type !== 'hidden');
if (totpInputs.length === 6) {
const combination = {
form: form,