Commit 00526663 authored by Stefan Busemann's avatar Stefan Busemann
Browse files

Merge branch '6-add-t3omy-extension' into develop

* 6-add-t3omy-extension:
  [TASK] correct phpdoc
  [TASK] Add slack connection for BE approvement
parents 0beb1250 33910b31
Pipeline #1787 passed with stages
in 4 minutes and 3 seconds
......@@ -109,6 +109,7 @@ class FeManagerHooks
*/
public function newUserAdminApprovement(User $user)
{
#User was approved via backend
$this->sendSlackBotMessage(
'User approved',
......@@ -201,6 +202,7 @@ class FeManagerHooks
// TODO: Handle the resonse as needed
if ($ret === true) {
} else {
}
}
}
......@@ -264,9 +266,11 @@ class FeManagerHooks
}
/**
* @param \In2code\Femanager\Domain\Model\User $user
* @return bool
*/
protected function sendConfirmationEmail(User $user ){
protected function sendConfirmationEmail(User $user)
{
return true;
}
}
......@@ -8,7 +8,7 @@ if (!defined('TYPO3_MODE')) {
#######################################
/**
* Register signal slots
* TODO: add the signal names
*
*/
$dispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
$dispatcher->connect(
......@@ -24,17 +24,27 @@ $dispatcher->connect(
\T3o\T3omy\Hooks\FeManagerHooks::class,
'newUserNotification'
);
$dispatcher->connect(
\In2code\Femanager\Controller\UserBackendController::class,
'deleteAction',
\T3o\T3omy\Hooks\FeManagerHooks::class,
'deleteUser'
);
$dispatcher->connect(
\In2code\Femanager\Controller\UserBackendController::class,
'',
'approveUserAction',
\T3o\T3omy\Hooks\FeManagerHooks::class,
'newUserAdminApprovement'
);
$dispatcher->connect(
\In2code\Femanager\Controller\UserBackendController::class,
'deleteAction',
'declineUserAction',
\T3o\T3omy\Hooks\FeManagerHooks::class,
'deleteUser'
'newUserAdminDecline'
);
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['password_changed'][] = \T3o\T3omy\Hooks\FeManagerHooks::class . '->writePassword';
......
Supports Markdown
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