Fixed that if wrong credentials have been entered but bank returned user's TAN methods anyway, GetUserTanMethodsResponse returned success

This commit is contained in:
dankito 2020-10-16 18:33:52 +02:00
parent 450f6af146
commit eee073fe3b
1 changed files with 1 additions and 1 deletions

View File

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