From eee073fe3bc59e881931b52a4316d9e2393fc615 Mon Sep 17 00:00:00 2001 From: dankito Date: Fri, 16 Oct 2020 18:33:52 +0200 Subject: [PATCH] Fixed that if wrong credentials have been entered but bank returned user's TAN methods anyway, GetUserTanMethodsResponse returned success --- .../banking/fints/response/client/GetUserTanMethodsResponse.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/client/GetUserTanMethodsResponse.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/client/GetUserTanMethodsResponse.kt index df89c53e..a63ab0f1 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/client/GetUserTanMethodsResponse.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/client/GetUserTanMethodsResponse.kt @@ -15,7 +15,7 @@ open class GetUserTanMethodsResponse(bankResponse: BankResponse) */ override val successful: Boolean get() = noTanMethodSelected == false && couldCreateMessage && didReceiveResponse - && tanRequiredButUserDidNotEnterOne == false + && tanRequiredButUserDidNotEnterOne == false && wrongCredentialsEntered == false && (responseContainsErrors == false || containsUsersTanMethodsFeedback()) protected open fun containsUsersTanMethodsFeedback(): Boolean {