From 737061f606cca334daeec9ccd3bd9a3d113f4948 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 12 May 2020 12:06:28 +0200 Subject: [PATCH] Fixed that photoTAN of comdirect is encoded the same way as photoTAN with chipTAN. So i guess it's the same with QrTan, e.g. from 1822 direct --- fints4k/src/main/kotlin/net/dankito/fints/FinTsClient.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fints4k/src/main/kotlin/net/dankito/fints/FinTsClient.kt b/fints4k/src/main/kotlin/net/dankito/fints/FinTsClient.kt index 0c81cd24..b6d63df8 100644 --- a/fints4k/src/main/kotlin/net/dankito/fints/FinTsClient.kt +++ b/fints4k/src/main/kotlin/net/dankito/fints/FinTsClient.kt @@ -664,10 +664,8 @@ open class FinTsClient @JvmOverloads constructor( TanProcedureType.ChipTanFlickercode, TanProcedureType.ChipTanManuell, TanProcedureType.ChipTanUsb -> FlickerCodeTanChallenge(FlickerCodeDecoder().decodeChallenge(challenge), messageToShowToUser, challenge, tanProcedure, tanResponse.tanMediaIdentifier) - TanProcedureType.ChipTanQrCode, TanProcedureType.ChipTanPhotoTanMatrixCode -> - ImageTanChallenge(TanImageDecoder().decodeChallenge(challenge), messageToShowToUser, challenge, tanProcedure, tanResponse.tanMediaIdentifier) - - TanProcedureType.QrCode, TanProcedureType.photoTan -> // TODO: how do these TAN procedures work? i don't think they use the HHD format + TanProcedureType.ChipTanQrCode, TanProcedureType.ChipTanPhotoTanMatrixCode, + TanProcedureType.QrCode, TanProcedureType.photoTan -> ImageTanChallenge(TanImageDecoder().decodeChallenge(challenge), messageToShowToUser, challenge, tanProcedure, tanResponse.tanMediaIdentifier) else -> TanChallenge(messageToShowToUser, challenge, tanProcedure, tanResponse.tanMediaIdentifier)