@smbcloud / cli / commits / 08f2d1c

reset password response

Seto committed Jan 2, 2026 at 15:02 UTC 08f2d1c5553bf93732b921638d0d59fa59d2057e
3 files changed +14 -1
crates/smbcloud-model/src/lib.rs
+1
@@ -6,6 +6,7 @@ pub mod login;
6 pub mod oauth;
7 pub mod project;
8 pub mod repository;
9 +pub mod reset_password_response;
10 pub mod runner;
11 pub mod signup;
12
crates/smbcloud-model/src/reset_password_response.rs new
+11
@@ -0,0 +1,11 @@
1 +use {
2 + serde::{Deserialize, Serialize},
3 + tsync::tsync,
4 +};
5 +
6 +#[derive(Debug, Serialize, Deserialize)]
7 +#[tsync]
8 +pub struct ResetPasswordResponse {
9 + pub code: Option<i32>,
10 + pub message: String,
11 +}
crates/smbcloud-networking-account/src/reset_password.rs
+2 -1
@@ -3,6 +3,7 @@ use {
3 smbcloud_model::{
4 error_codes::ErrorResponse,
5 forgot::{Param, UserUpdatePassword},
6 + reset_password_response::ResetPasswordResponse,
7 },
8 smbcloud_network::{environment::Environment, network::request},
9 smbcloud_networking::{
@@ -15,7 +16,7 @@ pub async fn reset_password(
16 client: SmbClient,
17 token: String,
18 password: String,
18 -) -> Result<(), ErrorResponse> {
19 +) -> Result<ResetPasswordResponse, ErrorResponse> {
20 let password_confirmation = password.clone();
21 let params = Param {
22 user: UserUpdatePassword {