include when checking Well-known, update server hint

This commit is contained in:
Connery Noble
2023-01-13 03:10:35 -08:00
parent 3ce83792f5
commit 075d603829
19 changed files with 26 additions and 36 deletions
+2 -4
View File
@@ -35,12 +35,10 @@ class LoginForm extends HookConsumerWidget {
getServeLoginConfig() async {
if (!serverEndpointFocusNode.hasFocus) {
var urlText = serverEndpointController.text.trim();
var serverUrl = serverEndpointController.text.trim();
try {
var serverUrl = Uri.tryParse(urlText);
if (serverUrl != null) {
if (serverUrl.isNotEmpty) {
isLoading.value = true;
final serverEndpoint =
await apiService.resolveEndpoint(serverUrl.toString());