mirror of
https://github.com/inventree/inventree-app.git
synced 2026-10-07 15:52:08 +00:00
server / username / password now saved to local preferences
This commit is contained in:
1 parent
2ec662fdef
commit
ee7ab5308e
3 files changed
+29
-55
No files matched your search
@@ -59,6 +59,11 @@ class InvenTreeAPI {
|
||||
address = address.trim();
|
||||
username = username.trim();
|
||||
|
||||
if (address.isEmpty || username.isEmpty || password.isEmpty) {
|
||||
print("Server error: Empty details supplied");
|
||||
return false;
|
||||
}
|
||||
|
||||
// Ensure we are pointing to the correct endpoint
|
||||
if (!address.endsWith("api/") || !address.endsWith("api")) {
|
||||
address = path.join(address, "api");
|
||||
|
||||
Reference in new issue
Block a user