server: add a display name to the administrator user

This commit is contained in:
Valentin Tolmer 2021-10-11 20:04:16 +02:00 committed by nitnelave
parent c4c0bb8b8e
commit 263fd44156

View File

@ -25,6 +25,7 @@ async fn create_admin_user(handler: &SqlBackendHandler, config: &Configuration)
handler
.create_user(CreateUserRequest {
user_id: config.ldap_user_dn.clone(),
display_name: Some("Administrator".to_string()),
..Default::default()
})
.and_then(|_| register_password(handler, &config.ldap_user_dn, &config.ldap_user_pass))