@smbcloud / cli / commits / c985ad4

pass email instead of user id

Seto committed Jan 1, 2026 at 23:01 UTC c985ad4b8df6efd40ff81f31da09fe49e9dc3e6b
3 files changed +6 -6
crates/cli/src/account/login/process.rs
+2 -2
@@ -216,7 +216,7 @@ async fn resend_email_verification(env: Environment, user: User) -> Result<Comma
216 .bold()
217 .to_string(),
218 );
219 - match account_resend_email_verification(env, SmbClient::Cli, user.id).await {
219 + match account_resend_email_verification(env, SmbClient::Cli, user.email).await {
220 Ok(_) => Ok(CommandResult {
221 spinner,
222 symbol: succeed_symbol(),
@@ -468,7 +468,7 @@ async fn resend_reset_password_instruction(env: Environment, user: User) -> Resu
468 succeed_message("Sending reset password instruction..."),
469 );
470
471 - match account_resend_reset_password_instruction(env, SmbClient::Cli, user.id).await {
471 + match account_resend_reset_password_instruction(env, SmbClient::Cli, user.email).await {
472 Ok(_) => {
473 spinner.stop_and_persist(
474 "✅",
crates/smbcloud-networking-account/src/resend_email_verification.rs
+2 -2
@@ -10,11 +10,11 @@ use {
10 pub async fn resend_email_verification(
11 env: Environment,
12 client: SmbClient,
13 - user_id: i32,
13 + email: String,
14 ) -> Result<SmbAuthorization, ErrorResponse> {
15 let builder = Client::new()
16 .post(build_smb_resend_email_verification_url(env, &client))
17 - .body(format!("id={}", user_id))
17 + .body(format!("email={}", email))
18 .header("User-agent", client.id())
19 .header("Accept", "application/json")
20 .header("Content-Type", "application/x-www-form-urlencoded");
crates/smbcloud-networking-account/src/resend_reset_password_instruction.rs
+2 -2
@@ -10,13 +10,13 @@ use {
10 pub async fn resend_reset_password_instruction(
11 env: Environment,
12 client: SmbClient,
13 - user_id: i32,
13 + email: String,
14 ) -> Result<SmbAuthorization, ErrorResponse> {
15 let builder = Client::new()
16 .post(build_smb_resend_reset_password_instructions_url(
17 env, &client,
18 ))
19 - .body(format!("id={}", user_id))
19 + .body(format!("email={}", email))
20 .header("User-agent", client.id())
21 .header("Accept", "application/json")
22 .header("Content-Type", "application/x-www-form-urlencoded");