mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Update API function to grab user token
- https://github.com/inventree/InvenTree/pull/735
This commit is contained in:
parent
c2e398463f
commit
51a877e8d7
1 changed files with 1 additions and 1 deletions
|
|
@ -231,7 +231,7 @@ class InvenTreeAPI {
|
|||
// Clear out the token
|
||||
_token = "";
|
||||
|
||||
response = await post(_URL_GET_TOKEN, body: {"username": _username, "password": _password}).catchError((error) {
|
||||
response = await get(_URL_GET_TOKEN).timeout(Duration(seconds: 10)).catchError((error) {
|
||||
print("Error requesting token:");
|
||||
print(error);
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue