server: add a display name to the administrator user

This commit is contained in:
Valentin Tolmer authored and nitnelave committed 2021-10-15 08:05:50 +02:00
1 parent c4c0bb8b8e
commit 263fd44156
1 file changed
+1
+1
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))