login and register are sending data to the backend successfuly

This commit is contained in:
filipriec
2025-08-29 14:46:43 +02:00
parent 833b918c5b
commit 75da9c0f4b
4 changed files with 18 additions and 2 deletions

View File

@@ -132,11 +132,12 @@ pub async fn back_to_main(
/// Validates input, shows loading, and spawns the login task.
pub fn initiate_login(
login_state: &LoginFormState,
login_state: &mut LoginFormState,
app_state: &mut AppState,
mut auth_client: AuthClient,
sender: mpsc::Sender<LoginResult>,
) -> String {
login_state.sync_from_editor();
let username = login_state.username().to_string();
let password = login_state.password().to_string();