mirror of
https://github.com/amigan/calls.git
synced 2024-11-21 12:29:47 -05:00
Merge branch 'websocket' into trunk
This commit is contained in:
commit
d7fa5d3304
1 changed files with 6 additions and 1 deletions
|
@ -66,7 +66,12 @@ class Stillbox extends ChangeNotifier {
|
|||
baseUri = Uri.parse(uri);
|
||||
setUris();
|
||||
}
|
||||
Uri loginUri = Uri.parse('${baseUri!}/login');
|
||||
String baseUriString = baseUri.toString();
|
||||
// trim trailing slash since gordio router really dislikes it
|
||||
if (baseUriString.endsWith('/')) {
|
||||
baseUriString = baseUriString.substring(0, baseUriString.length - 1);
|
||||
}
|
||||
Uri loginUri = Uri.parse('$baseUriString/login');
|
||||
final form = <String, dynamic>{};
|
||||
form['username'] = username;
|
||||
form['password'] = password;
|
||||
|
|
Loading…
Reference in a new issue