diff --git a/bssb_core_banking_asset/models/cb_asset_batch.py b/bssb_core_banking_asset/models/cb_asset_batch.py index 1122638..f781f02 100644 --- a/bssb_core_banking_asset/models/cb_asset_batch.py +++ b/bssb_core_banking_asset/models/cb_asset_batch.py @@ -307,19 +307,17 @@ def _get_token(self): url = backend.base_url + backend.api_token - payload = json.dumps( - { - "user": backend.username, - "pass": backend.password, - } - ) + params = { + "user": backend.username, + "password": backend.password + } headers = { "Content-Type": "application/json", } try: response = requests.request( - "GET", url, headers=headers, data=payload + "POST", url, headers=headers, params=params ) backend.token = result["token"] self.action_done()