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 ...@@ -63,7 +63,6 @@ class FeManagerHooks
*/ */
protected $myProfileRepository; protected $myProfileRepository;
/** /**
* DataHandlerHook constructor * DataHandlerHook constructor
*/ */
...@@ -107,7 +106,6 @@ class FeManagerHooks ...@@ -107,7 +106,6 @@ class FeManagerHooks
{ {
// this event happens, when a user registered himself and an autoapprovement got active // this event happens, when a user registered himself and an autoapprovement got active
$this->createUser($user); $this->createUser($user);
$this->sendSlackBotMessage( $this->sendSlackBotMessage(
...@@ -174,6 +172,9 @@ class FeManagerHooks ...@@ -174,6 +172,9 @@ class FeManagerHooks
*/ */
public function createUser(User $user) 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()); $myProfileUser = $this->myProfileRepository->findByUid($user->getUid());
$result = $this->ldapUserCreateUpdateDelete->updateUser($myProfileUser); $result = $this->ldapUserCreateUpdateDelete->updateUser($myProfileUser);
......
...@@ -46,7 +46,6 @@ plugin.tx_femanager { ...@@ -46,7 +46,6 @@ plugin.tx_femanager {
page.termsAndConditions = 6 page.termsAndConditions = 6
# Femanager autoAdminConfirmation classes # Femanager autoAdminConfirmation classes
autoAdminConfirmation = 1
autoAdminConfirmation { autoAdminConfirmation {
10 { 10 {
class = In2code\Femanager\Domain\Service\AutoAdminConfirmation\EmailDomainConfirmation 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