From cbf40e35a1506918a9cb2624b82938050a470687 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sun, 6 Nov 2022 11:28:17 +0100 Subject: [PATCH] neon: Remove quirk for failing login with pre-provided credentials --- packages/neon/lib/src/pages/login.dart | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packages/neon/lib/src/pages/login.dart b/packages/neon/lib/src/pages/login.dart index 71834be4..56061597 100644 --- a/packages/neon/lib/src/pages/login.dart +++ b/packages/neon/lib/src/pages/login.dart @@ -163,20 +163,6 @@ class _LoginPageState extends State { ); } }, - onPageFinished: (final url) async { - if (Provider.of(context, listen: false) != null) { - // There seems to be a bug where the first try with provided authentication header - // always fails, but all the following ones work. This just restarts the flow if it sees - // an error. - // To be clear: This doesn't happen without pre-provided authentication, - // so it's not a concern while still being a bug somewhere. - final result = await _webViewController! - .runJavascriptReturningResult('document.getElementsByClassName("error").length'); - if (result == '1') { - _loginBloc.setServerURL(serverURLSnapshot.data); - } - } - }, ) : Center( child: Column(