|
|
@@ -538,6 +538,7 @@ class OrganizationFactory
|
|
|
{
|
|
|
$admin = new Person();
|
|
|
$admin->setUsername('admin'.strtolower($organizationCreationRequest->getSubdomain()));
|
|
|
+ $admin->setUsernameCanonical('admin'.strtolower($organizationCreationRequest->getSubdomain()));
|
|
|
$randomString = ByteString::fromRandom(32)->toString();
|
|
|
$admin->setPassword($randomString);
|
|
|
$admin->setEnabled(true);
|
|
|
@@ -618,6 +619,7 @@ class OrganizationFactory
|
|
|
}
|
|
|
|
|
|
$person->setUsername($creationRequestData->getUsername());
|
|
|
+ $person->setUsernameCanonical($creationRequestData->getUsername());
|
|
|
$person->setPassword(ByteString::fromRandom(32)->toString());
|
|
|
$person->setGender($creationRequestData->getGender());
|
|
|
$person->setName(
|