@smbcloud / cli / commits / 0e0f2b8

fix signup result

Seto committed Sep 28, 2025 at 11:12 UTC 0e0f2b8bed806452a9d01676ec396d9afdf3a885
2 files changed +3 -2
crates/cli/src/account/signup/process.rs
+1 -1
@@ -137,7 +137,7 @@ pub async fn do_signup<T: Serialize + ?Sized>(env: Environment, args: &T) -> Res
137 }),
138 StatusCode::UNPROCESSABLE_ENTITY => {
139 let result: SignupResult = response.json().await?;
140 - let error = anyhow!("Failed to signup: {}", result.status.message);
140 + let error = anyhow!("Unprocessable entity: {}", result.message);
141 Err(error)
142 }
143 _ => {
crates/smbcloud-model/src/signup.rs
+2 -1
@@ -43,7 +43,8 @@ pub struct SignupUserEmail {
43 #[derive(Debug, Serialize, Deserialize)]
44 #[tsync]
45 pub struct SignupResult {
46 - pub status: Status,
46 + pub code: Option<i32>,
47 + pub message: String,
48 pub data: Option<Data>,
49 }
50