diff --git a/src-tauri/src/commands/python_cli.rs b/src-tauri/src/commands/python_cli.rs index a854aa3..4f83ede 100644 --- a/src-tauri/src/commands/python_cli.rs +++ b/src-tauri/src/commands/python_cli.rs @@ -92,21 +92,13 @@ pub async fn python_cli_auth_login( app: AppHandle, request: AuthLoginRequest, ) -> Result { - let mut args = vec!["auth".to_string(), "login".to_string(), request.username_or_email]; + let mut args = vec!["auth".to_string(), "login".to_string(), request.username, request.password]; if let Some(password) = request.password { args.push("--password".to_string()); args.push(password); } - if request.verbose.unwrap_or(false) { - args.push("--verbose".to_string()); - } - - if request.json_output.unwrap_or(false) { - args.push("--json".to_string()); - } - execute_python_cli_command(app, args, None).await } diff --git a/src/services/pythonCliAuth.ts b/src/services/pythonCliAuth.ts index 3e774f6..ce6a03b 100644 --- a/src/services/pythonCliAuth.ts +++ b/src/services/pythonCliAuth.ts @@ -71,7 +71,8 @@ class PythonCliAuth { const response: PythonCliAuthResponse = await invoke('python_cli_auth_login', { request: { - username_or_email, + username: credentials.username, + email: credentials.email, password: credentials.password } });