user_operations: don't fetch auth_string/password, only check existence

This commit is contained in:
2024-08-07 17:14:24 +02:00
parent d0b750cd33
commit a9b8f7cee7
3 changed files with 26 additions and 44 deletions

View File

@@ -197,7 +197,7 @@ async fn show_users(args: UserShowArgs, conn: &mut MySqlConnection) -> anyhow::R
println!(
"User '{}': {}",
&user.user,
if !(user.authentication_string.is_empty() && user.password.is_empty()) {
if user.has_password {
"password set."
} else {
"no password set."