feat: add about to users
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/push/publish-docs Pipeline was successful

This commit is contained in:
Radical 2025-06-01 22:20:29 +02:00
parent 41defc4a25
commit c4fc23ec85
5 changed files with 32 additions and 0 deletions

View file

@ -41,6 +41,7 @@ struct NewInfo {
//password: Option<String>, will probably be handled through a reset password link
email: Option<String>,
pronouns: Option<String>,
about: Option<String>,
}
#[derive(Debug, MultipartForm)]
@ -102,5 +103,9 @@ pub async fn update(
me.set_pronouns(&data, pronouns.clone()).await?;
}
if let Some(about) = &form.json.about {
me.set_about(&data, about.clone()).await?;
}
Ok(HttpResponse::Ok().finish())
}