From b56ea1cd9acf84fe747393580b0a954030680e08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=C2=A0Koby=C5=82ko?= Date: Sun, 1 Sep 2024 13:30:13 +0200 Subject: [PATCH] Fix Aegis HOTP import --- .../twofasapp/feature/externalimport/domain/AegisImporter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feature/externalimport/src/main/java/com/twofasapp/feature/externalimport/domain/AegisImporter.kt b/feature/externalimport/src/main/java/com/twofasapp/feature/externalimport/domain/AegisImporter.kt index 490cff78..fca22047 100644 --- a/feature/externalimport/src/main/java/com/twofasapp/feature/externalimport/domain/AegisImporter.kt +++ b/feature/externalimport/src/main/java/com/twofasapp/feature/externalimport/domain/AegisImporter.kt @@ -73,7 +73,7 @@ internal class AegisImporter( .asSequence() .filter { it.type.equals("totp", true) || it.type.equals("hotp", true) || it.type.equals("steam", true)} .filter { it.info.digits == 5 ||it.info.digits == 6 || it.info.digits == 7 || it.info.digits == 8 } - .filter { it.info.period == 10 || it.info.period == 30 || it.info.period == 60 || it.info.period == 90 } + .filter { it.info.period == 10 || it.info.period == 30 || it.info.period == 60 || it.info.period == 90 || it.type.equals("hotp", true)} .filter { it.info.algo.equals("SHA1", true) || it.info.algo.equals("SHA224", true) || it.info.algo.equals( "SHA256",