From 3507bcd0abb9e4710f02db139db474c624a81dda Mon Sep 17 00:00:00 2001 From: dankito Date: Sat, 25 Jan 2020 11:30:56 +0100 Subject: [PATCH] Fixed check if no ATC has been entered --- fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt b/fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt index fbcb4f40..9451313a 100644 --- a/fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt +++ b/fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt @@ -344,7 +344,7 @@ open class FinTsClient @JvmOverloads constructor( if (bank.changeTanMediumParameters?.enteringAtcAndTanRequired == true) { enteredAtc = callback.enterTanGeneratorAtc(customer, newActiveTanMedium) - if (enteredAtc.hasAtcBeenEntered) { + if (enteredAtc.hasAtcBeenEntered == false) { val message = "Bank requires to enter ATC and TAN in order to change TAN medium." // TODO: translate return FinTsClientResponse(Response(false, exception = Exception(message))) }