From dddf72241dc8236cabe2590bb120a35b507fac2d Mon Sep 17 00:00:00 2001 From: PartyDonut <42371342+PartyDonut@users.noreply.github.com> Date: Sun, 13 Oct 2024 20:00:15 +0200 Subject: [PATCH] [Bugfix] Allow empty password login screen (#14) fixes #12, can now log in with only a username Co-authored-by: PartyDonut --- lib/screens/login/login_screen.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/screens/login/login_screen.dart b/lib/screens/login/login_screen.dart index e54e5a0..4b18db2 100644 --- a/lib/screens/login/login_screen.dart +++ b/lib/screens/login/login_screen.dart @@ -234,9 +234,7 @@ class _LoginPageState extends ConsumerState { } }; - bool emptyFields() { - return usernameController.text.isEmpty || passwordController.text.isEmpty; - } + bool emptyFields() => usernameController.text.isEmpty; void retrieveListOfUsers() async { serverTextController.text = serverTextController.text.rtrim('/');