Skip to content

Commit

Permalink
[REV]
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevhe18 committed Dec 17, 2024
1 parent cc1f707 commit 2cbefaa
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions bssb_core_banking_asset/models/cb_asset_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2cbefaa

Please sign in to comment.