[Bugfix] Allow empty password login screen (#14)

fixes #12, can now log in with only a username

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2024-10-13 20:00:15 +02:00 committed by GitHub
parent a932fa71ff
commit dddf72241d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -234,9 +234,7 @@ class _LoginPageState extends ConsumerState<LoginScreen> {
}
};
bool emptyFields() {
return usernameController.text.isEmpty || passwordController.text.isEmpty;
}
bool emptyFields() => usernameController.text.isEmpty;
void retrieveListOfUsers() async {
serverTextController.text = serverTextController.text.rtrim('/');