server: map email and display_name from attributes into user fields

This commit is contained in:
Valentin Tolmer
2024-08-27 23:57:52 +02:00
committed by nitnelave
parent b1384818d2
commit 6cf0f6df06
5 changed files with 66 additions and 23 deletions

View File

@@ -88,7 +88,7 @@ impl CommonComponent<CreateUserForm> for CreateUserForm {
let req = create_user::Variables {
user: create_user::CreateUserInput {
id: model.username,
email: model.email,
email: Some(model.email),
displayName: to_option(model.display_name),
firstName: to_option(model.first_name),
lastName: to_option(model.last_name),