Skip to content

Commit

Permalink
TASK: Remove obsolete use of user utility
Browse files Browse the repository at this point in the history
Setting the personal preference was introduced 13 years ago via 3088d95 but is not necessary anymore.
  • Loading branch information
mhsdesign authored Sep 30, 2024
1 parent 6d75213 commit a4a1727
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Classes/Form/Runtime/Action/CreateUserAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
use Neos\Party\Domain\Service\PartyService;
use Neos\Neos\Domain\Model\User;
use Neos\Party\Domain\Model\PersonName;
use Neos\Neos\Utility\User as UserUtility;
use Neos\Fusion\Form\Runtime\Action\AbstractAction;

class CreateUserAction extends AbstractAction
Expand Down Expand Up @@ -62,8 +61,6 @@ public function perform(): ?ActionResponse

$user = new User();
$user->setName(new PersonName('', $firstName, '', $lastName));
$userWorkspaceName = UserUtility::getPersonalWorkspaceNameForUsername($accountIdentifier);
$user->getPreferences()->set('context.workspace', $userWorkspaceName);
$this->partyRepository->add($user);

$account = $this->accountFactory->createAccountWithPassword($accountIdentifier, $password, $this->options['roles'], 'Neos.Neos:Backend');
Expand Down

0 comments on commit a4a1727

Please sign in to comment.