Skip to content

Commit 70dc1d6

Browse files
authored
Add optional TAN medium field to constructor of FinTS3PinTanClient (fix #121, #106) (#146)
1 parent 435fe18 commit 70dc1d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fints/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,13 +1125,13 @@ def _parse_tan_challenge(self):
11251125

11261126
class FinTS3PinTanClient(FinTS3Client):
11271127

1128-
def __init__(self, bank_identifier, user_id, pin, server, customer_id=None, *args, **kwargs):
1128+
def __init__(self, bank_identifier, user_id, pin, server, customer_id=None, tan_medium=None, *args, **kwargs):
11291129
self.pin = Password(pin) if pin is not None else pin
11301130
self._pending_tan = None
11311131
self.connection = FinTSHTTPSConnection(server)
11321132
self.allowed_security_functions = []
11331133
self.selected_security_function = None
1134-
self.selected_tan_medium = None
1134+
self.selected_tan_medium = tan_medium
11351135
self._bootstrap_mode = True
11361136
super().__init__(bank_identifier=bank_identifier, user_id=user_id, customer_id=customer_id, *args, **kwargs)
11371137

0 commit comments

Comments
 (0)