[TYPO3-english] Authentication ext. - problem with LOGing

Pero Matic pero at matic.hr
Wed Feb 2 18:07:36 CET 2011


Hi. In class.t3lib_userauth.php there is this code:

// User logged in - write that to the log!

if ($this->writeStdLog && $activeLogin) {
    $this->writelog(255,1,0,1,'User %s logged in from %s 
(%s)',Array($tempuser[$this->username_column], 
t3lib_div::getIndpEnv('REMOTE_ADDR'), 
t3lib_div::getIndpEnv('REMOTE_HOST')),'','','',-1,'',$tempuser['uid']);
}

My auth. ext. doesn't use form to login so $activeLogin var is always false. 
This way when i login to BE nothing is written to the LOG. How to handle 
this? I tried calling writelog within my auth class but it doesn't work ok - 
it's called multiple times so i get 5 login entries per one login in the 
LOG. Thx.

Regards. 




More information about the TYPO3-english mailing list