File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ def finance_information(self) -> FinanceInformation:
299
299
def payment_details (self ) -> PaymentDetails :
300
300
return PaymentDetails (
301
301
recipient = current_app .config ["PAYMENT_BENEFICIARY" ],
302
- iban = IBAN (current_app .config ["PAYMENT_IBAN" ]),
302
+ iban = IBAN (current_app .config ["PAYMENT_IBAN" ], validate_bban = True ),
303
303
purpose = "{id}, {name}, {address}" .format (
304
304
id = self .user_data .user_id ,
305
305
name = self .user_data .name ,
Original file line number Diff line number Diff line change 4
4
5
5
from flask import current_app
6
6
from flask_login import AnonymousUserMixin
7
+ from schwifty import IBAN
7
8
from werkzeug .local import LocalProxy
8
9
9
10
from sipa .model .exceptions import PasswordInvalid , UserNotFound
@@ -232,7 +233,7 @@ def birthdate(self):
232
233
def payment_details (self ) -> PaymentDetails :
233
234
return PaymentDetails (
234
235
recipient = "Donald Duck" ,
235
- iban = "EH12432543209523" ,
236
+ iban = IBAN ( "EH12432543209523" , allow_invalid = True ) ,
236
237
purpose = self .id .value ,
237
238
)
238
239
You can’t perform that action at this time.
0 commit comments