Skip to content

Commit 08f2d1c

Browse files
committed
reset password response
1 parent 09295c2 commit 08f2d1c

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

crates/smbcloud-model/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ pub mod login;
66
pub mod oauth;
77
pub mod project;
88
pub mod repository;
9+
pub mod reset_password_response;
910
pub mod runner;
1011
pub mod signup;
1112

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use {
33
smbcloud_model::{
44
error_codes::ErrorResponse,
55
forgot::{Param, UserUpdatePassword},
6+
reset_password_response::ResetPasswordResponse,
67
},
78
smbcloud_network::{environment::Environment, network::request},
89
smbcloud_networking::{
@@ -15,7 +16,7 @@ pub async fn reset_password(
1516
client: SmbClient,
1617
token: String,
1718
password: String,
18-
) -> Result<(), ErrorResponse> {
19+
) -> Result<ResetPasswordResponse, ErrorResponse> {
1920
let password_confirmation = password.clone();
2021
let params = Param {
2122
user: UserUpdatePassword {

0 commit comments

Comments
 (0)