feat: add about to users
This commit is contained in:
parent
41defc4a25
commit
c4fc23ec85
5 changed files with 32 additions and 0 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue