fixed, removed log library

This commit is contained in:
filipriec
2025-04-18 14:58:05 +02:00
parent 2b37de3b4d
commit 14b81cba19
4 changed files with 25 additions and 13 deletions

View File

@@ -36,12 +36,21 @@ pub async fn save(
login_state.set_has_unsaved_changes(false);
login_state.error_message = None;
let success_message = "Login Successful!".to_string();
// Format the success message using response data
let success_message = format!(
"Login Successful!\n\n\
Username: {}\n\
User ID: {}\n\
Role: {}",
response.username,
response.user_id,
response.role
);
app_state.show_dialog(
"Login Success",
&success_message,
vec!["OK".to_string()],
vec!["Menu".to_string(), "Exit".to_string()],
DialogPurpose::LoginSuccess,
);
login_state.password.clear();