diff --git a/fints4k/src/main/kotlin/net/dankito/fints/model/EnterTanResult.kt b/fints4k/src/main/kotlin/net/dankito/fints/model/EnterTanResult.kt index 686fcdc6..3057adb8 100644 --- a/fints4k/src/main/kotlin/net/dankito/fints/model/EnterTanResult.kt +++ b/fints4k/src/main/kotlin/net/dankito/fints/model/EnterTanResult.kt @@ -14,7 +14,7 @@ open class EnterTanResult protected constructor( companion object { fun userEnteredTan(enteredTan: String): EnterTanResult { - return EnterTanResult(enteredTan) + return EnterTanResult(enteredTan.replace(" ", "")) } fun userDidNotEnterTan(): EnterTanResult { diff --git a/ui/BankingUiCommon/src/main/java/net/dankito/banking/ui/model/tan/EnterTanResult.kt b/ui/BankingUiCommon/src/main/java/net/dankito/banking/ui/model/tan/EnterTanResult.kt index a70bf849..cfcae4f2 100644 --- a/ui/BankingUiCommon/src/main/java/net/dankito/banking/ui/model/tan/EnterTanResult.kt +++ b/ui/BankingUiCommon/src/main/java/net/dankito/banking/ui/model/tan/EnterTanResult.kt @@ -13,7 +13,7 @@ open class EnterTanResult protected constructor( companion object { fun userEnteredTan(enteredTan: String): EnterTanResult { - return EnterTanResult(enteredTan) + return EnterTanResult(enteredTan.replace(" ", "")) } fun userDidNotEnterTan(): EnterTanResult {