I'd like to create a FE user with a custom extension (created with the extension builder).
I don't want to use fe_user_registration or something similar because there are also many other custom features needed which will probably be lost when some moron accidentally updates it.
I'm using TYPO3 7.6.8
Use those, in the usual way. You might need to fiddle a bit to get storage pages right, but it'll work. I'm not sure if the password will be hashed automatically, so check that out.
First, inject a FrontendUserRepository where you want to use it:
/** * @var \TYPO3\CMS\Extbase\Domain\Repository\FrontendUserRepository * @inject */ protected $frontendUserRepository;
Then create a frontend user and persist it using the repository:
$frontendUser = new FrontendUser(); $frontendUser->setUsername('myusername'); // Set more values $this->frontendUserRepository->add($frontendUser);