allow to edit username (#4559)

This commit is contained in:
Kevin Papst
2024-01-14 13:02:44 +01:00
committed by GitHub
parent 5acd33dd64
commit fdda9841fa
6 changed files with 43 additions and 2 deletions

View File

@@ -42,6 +42,14 @@ class UserEditType extends AbstractType
$user = $options['data'];
}
if ($options['include_username']) {
$builder->add('username', TextType::class, [
'label' => 'user_identifier',
'help' => 'user_identifier.help',
'required' => true,
]);
}
$builder->add('alias', TextType::class, [
'label' => 'alias',
'required' => false,
@@ -117,6 +125,7 @@ class UserEditType extends AbstractType
'include_active_flag' => true,
'include_preferences' => true,
'include_supervisor' => true,
'include_username' => false,
'include_password_reset' => true,
]);
}