diff --git a/app/src/main/java/com/kunzisoft/keepass/credentialprovider/autofill/StructureParser.kt b/app/src/main/java/com/kunzisoft/keepass/credentialprovider/autofill/StructureParser.kt index e1dc907b4..f5dc0381e 100644 --- a/app/src/main/java/com/kunzisoft/keepass/credentialprovider/autofill/StructureParser.kt +++ b/app/src/main/java/com/kunzisoft/keepass/credentialprovider/autofill/StructureParser.kt @@ -316,6 +316,16 @@ class StructureParser(private val structure: AssistStructure) { "input" -> { nodHtml.attributes?.forEach { pairAttribute -> when (pairAttribute.first.lowercase(Locale.ENGLISH)) { + "id", "name" -> { + when (pairAttribute.second.lowercase(Locale.ENGLISH)) { + "totppin" -> { + result?.otpTokenId = autofillId + result?.otpTokenValue = node.autofillValue + Log.d(TAG, "Autofill OTP token web id: ${node.htmlInfo?.tag} ${node.htmlInfo?.attributes}") + return true + } + } + } "type" -> { when (pairAttribute.second.lowercase(Locale.ENGLISH)) { "tel", "email" -> {