mirror of
https://github.com/inventree/inventree-app.git
synced 2026-08-18 17:26:28 +00:00
Fix login issues
- Properly clear secure token - Better error messages
This commit is contained in:
+2
-6
@@ -471,11 +471,7 @@ class InvenTreeAPI {
|
||||
|
||||
if (!response.successful()) {
|
||||
debug("Server returned invalid response: ${response.statusCode}");
|
||||
showStatusCodeError(
|
||||
apiUrl,
|
||||
response.statusCode,
|
||||
details: response.data.toString(),
|
||||
);
|
||||
showStatusCodeError(apiUrl, response.statusCode, details: response.data);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1535,7 +1531,7 @@ class InvenTreeAPI {
|
||||
showStatusCodeError(
|
||||
url,
|
||||
_response.statusCode,
|
||||
details: response.data.toString(),
|
||||
details: response.data,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user