From b2ff4dba323665201e4e6a7518197285225f9d9e Mon Sep 17 00:00:00 2001 From: imeepos Date: Sat, 12 Jul 2025 18:41:37 +0800 Subject: [PATCH] fix --- src-tauri/src/commands/python_cli.rs | 10 +--------- src/services/pythonCliAuth.ts | 3 ++- 2 files changed, 3 insertions(+), 10 deletions(-) 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 } });