feat: TOTP Token for Google #553

This commit is contained in:
J-Jamet 2025-12-20 17:06:49 +01:00
parent 8c8fc7ec9b
commit 515593ea21
No known key found for this signature in database
GPG Key ID: AF519CD10D9C320C

View File

@ -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" -> {