feat: add pronouns to users
This commit is contained in:
parent
2f7fac8db5
commit
ee8211a321
5 changed files with 32 additions and 0 deletions
|
@ -40,6 +40,7 @@ struct NewInfo {
|
|||
display_name: Option<String>,
|
||||
//password: Option<String>, will probably be handled through a reset password link
|
||||
email: Option<String>,
|
||||
pronouns: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, MultipartForm)]
|
||||
|
@ -97,5 +98,9 @@ pub async fn update(
|
|||
me.set_email(&data, email.clone()).await?;
|
||||
}
|
||||
|
||||
if let Some(pronouns) = &form.json.pronouns {
|
||||
me.set_pronouns(&data, pronouns.clone()).await?;
|
||||
}
|
||||
|
||||
Ok(HttpResponse::Ok().finish())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue