Commit 1133aa02 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Fixes the creation of an user (incl. Slack and LDAP)

parent 84a6a499
Pipeline #3827 passed with stages
in 4 minutes and 48 seconds
......@@ -63,7 +63,6 @@ class FeManagerHooks
*/
protected $myProfileRepository;
/**
* DataHandlerHook constructor
*/
......@@ -107,7 +106,6 @@ class FeManagerHooks
{
// this event happens, when a user registered himself and an autoapprovement got active
$this->createUser($user);
$this->sendSlackBotMessage(
......@@ -174,6 +172,9 @@ class FeManagerHooks
*/
public function createUser(User $user)
{
// Due to a dirty state of the user we need to persist before fetch
$persistenceManager = GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager::class);
$persistenceManager->persistAll();
$myProfileUser = $this->myProfileRepository->findByUid($user->getUid());
$result = $this->ldapUserCreateUpdateDelete->updateUser($myProfileUser);
......
......@@ -46,7 +46,6 @@ plugin.tx_femanager {
page.termsAndConditions = 6
# Femanager autoAdminConfirmation classes
autoAdminConfirmation = 1
autoAdminConfirmation {
10 {
class = In2code\Femanager\Domain\Service\AutoAdminConfirmation\EmailDomainConfirmation
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment