dadasd
This commit is contained in:
@@ -64,7 +64,8 @@ final class RegistrationService
|
||||
$note = trim((string) ($input['note'] ?? ''));
|
||||
$password = (string) ($input['password'] ?? '');
|
||||
$passwordConfirm = (string) ($input['password_confirm'] ?? '');
|
||||
$displayName = trim($givenName . ' ' . $familyName);
|
||||
$displayName = $givenName;
|
||||
$fullName = trim($givenName . ' ' . $familyName);
|
||||
$errors = [];
|
||||
|
||||
if (!preg_match('/^[a-z0-9._-]{3,32}$/', $username)) {
|
||||
@@ -128,7 +129,7 @@ final class RegistrationService
|
||||
'apple_generateduid' => '',
|
||||
'display_name' => $displayName,
|
||||
'cn' => $displayName !== '' ? $displayName : $username,
|
||||
'gecos' => $displayName,
|
||||
'gecos' => $fullName !== '' ? $fullName : $displayName,
|
||||
'admin_note' => '',
|
||||
'ldap_created_at' => gmdate('c'),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user