Commit 8169a583 authored by Stefan Busemann's avatar Stefan Busemann

[TASK] Add slack connection for BE approvement

parent 7403f1a1
Pipeline #1768 passed with stages
in 4 minutes and 2 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 {
}
}
}
......@@ -266,7 +268,8 @@ class FeManagerHooks
/**
* @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';
......
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