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

@@ -62,11 +62,12 @@ pub async fn back_to_login(
/// Validates input, shows loading, and spawns the registration task.
pub fn initiate_registration(
register_state: &RegisterFormState,
register_state: &mut RegisterFormState,
app_state: &mut AppState,
mut auth_client: AuthClient,
sender: mpsc::Sender<RegisterResult>,
) -> String {
register_state.sync_from_editor();
let username = register_state.username().to_string();
let email = register_state.email().to_string();
let password = register_state.password().to_string();