server: add support for creating a user with attributes

This commit is contained in:
Valentin Tolmer
2023-09-25 01:18:02 +02:00
committed by nitnelave
parent 81204dcee5
commit 3fadfb1944
4 changed files with 30 additions and 3 deletions

View File

@@ -104,6 +104,7 @@ impl<Handler: BackendHandler> Mutation<Handler> {
first_name: user.first_name,
last_name: user.last_name,
avatar,
..Default::default()
})
.instrument(span.clone())
.await?;

View File

@@ -711,6 +711,7 @@ impl<Backend: BackendHandler + LoginHandler + OpaqueHandler> LdapHandler<Backend
code: LdapResultCode::ConstraintViolation,
message: format!("Invalid JPEG photo: {:#?}", e),
})?,
..Default::default()
})
.await
.map_err(|e| LdapError {