Support login for users without passwords (#421)

Just requires a username to be entered to enable the login button.

Fixes #419
This commit is contained in:
damontecres 2025-12-11 10:40:32 -05:00 committed by GitHub
parent 0f4254c6ec
commit c97553f82a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -286,7 +286,7 @@ fun SwitchUserContent(
TextButton(
stringRes = R.string.login,
onClick = { onSubmit.invoke() },
enabled = username.text.isNotNullOrBlank() && password.text.isNotNullOrBlank(),
enabled = username.text.isNotNullOrBlank(),
modifier = Modifier.align(Alignment.CenterHorizontally),
)
}