[TYPO3-dev] Hook needed in class.t3lib_userauth.php
dl4gbe at gmail.com
dl4gbe at gmail.com
Mon Jul 30 16:51:01 CEST 2007
Hallo,
Big problem. I urgently would need a hook in function
checkAuthentication class.t3lib_userauth.php. Hooks for logout exist but I can't find a hook for logon.
The hook should be located after a sucessful logon was written to the logs after line 550.
if ($this->writeDevLog && $activeLogin) t3lib_div::devLog('User '.$tempuser[$this->username_column].' logged in from '.t3lib_div::getIndpEnv('REMOTE_ADDR').' ('.t3lib_div::getIndpEnv('REMOTE_HOST').')', 't3lib_userAuth', -1);
if ($this->writeDevLog && !$activeLogin) t3lib_div::devLog('User '.$tempuser[$this->username_column].' authenticated from '.t3lib_div::getIndpEnv('REMOTE_ADDR').' ('.t3lib_div::getIndpEnv('REMOTE_HOST').')', 't3lib_userAuth', -1);
----> insert hook
// hook after sucessful logon.... requested by dl4gbe at gmail.com
if ($activeLogin) {
if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logon_post_processing'])) {
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logon_post_processing'] as $_funcRef) {
if ($_funcRef)t3lib_div::callUserFunction($_funcRef,$tempuser,$this);
}
}
}
I need this thing because I logon to xt:commerce with sso. I logon as a frontend as well as a backend user. Works perfectly with this hook.
I do not know who is responsible in the core team to include such a hook.
Many thanks
Chris
Bangkok/Thailand
More information about the TYPO3-dev
mailing list