Commit 742d33f2 authored by Stefan Busemann's avatar Stefan Busemann
Browse files

[WIP] Add password hook

parent fae0496c
Pipeline #1452 passed with stages
in 4 minutes and 59 seconds
......@@ -25,6 +25,8 @@ namespace T3o\T3omy\Hooks;
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
use TYPO3\CMS\Extbase\Utility\DebuggerUtility;
use T3o\T3oLdap\Utility;
/**
* Hook Functions for \
......@@ -34,13 +36,13 @@ class FeManagerHooks {
/**
*/
protected $ldap;
protected $ldapOperation;
/**
* DataHandlerHook constructor
*/
public function __construct() {
#$this->ldap = new Tx_T3oLdap_Utility_UserCreateUpdateDelete();
$this->ldapOperation = new UserCreateUpdateDelete();
}
/**
......@@ -80,8 +82,22 @@ class FeManagerHooks {
}
public function writePassword() {
/**
* @param $_funcRef
* @param $_params
* @param $this
*/
public function writePassword($_funcRef, $_params, $felogin) {
DebuggerUtility::var_dump($_funcRef,'$_funcRef');
DebuggerUtility::var_dump($_params,'$_params');
DebuggerUtility::var_dump($felogin,'$felogin');
die('halt');
$feUserUid=0;
$userData = array();
$createIfNotExists = false;
$result = $this->ldapOperation->updateUser($feUserUid, $userData, $createIfNotExists);
}
}
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