[TYPO3-dev] Hook needed in class.t3lib_userauth.php

Steffen Kamper steffen at sk-typo3.de
Tue Jul 31 08:58:31 CEST 2007


Hi Chris,

the hook in logoff is called also 3 times if you log out, but in the hook 
you can look at which point you are.
The same has to be in postUserLookUp - look if the user is created, this 
should only be once.

vg  Steffen

<dl4gbe at gmail.com> schrieb im Newsbeitrag 
news:mailman.8746.1185843844.11720.typo3-dev at lists.netfielders.de...
> Hallo Steffen
>
> I tried postUserLookUp. The problem is it fires all too offen... I need a 
> hook which ist only called after a sucessful login using a login form.
>
> The hook logoff_post_processing exists. So it would make sense to have one 
> like I proposed, logon_post_processing. And yes the hook 
> logoff_post_processing serves me well... It should only fire when a user 
> logsoff, not in case a session expires. It's quit possible that the 
> application which is called by sso got a different session expiry time. I 
> have some plugins which show xt:commerce data in typo3. Because I am 
> logged on as a backend user in commerce, I can see the shopping basket and 
> can purchase things using the preview of typo3. That's my idea... A 
> backend user becomes a commerce admin, a front end user a normal customer. 
> I think this is the best solution using sso (single signon) with 
> xt:commerce. Creating a backend user in typo3 creates a admin in 
> xt:commerce... creating a frontend user creates a customer in xt:commerce. 
> This works already fine using hooks in tcemain.
>
> Chris
>
> Bangkok / Thailand
>
>
>
>
>
> ----- Original Message ----- 
> From: "Steffen Kamper" <steffen at sk-typo3.de>
> Newsgroups: typo3.dev
> To: <typo3-dev at lists.netfielders.de>
> Sent: Monday, July 30, 2007 11:14 PM
> Subject: Re: [TYPO3-dev] Hook needed in class.t3lib_userauth.php
>
>
>>
>> "Martin Kutschker" <Martin.Kutschker at n0spam-blackbox.net> schrieb im 
>> Newsbeitrag 
>> news:mailman.1.1185809854.10595.typo3-dev at lists.netfielders.de...
>>> dl4gbe at gmail.com schrieb:
>>>> Hallo,
>>>>
>>>> Big problem. I urgently would need a hook in function 
>>>> checkAuthentication class.t3lib_userauth.php. Hooks for logout exist
>>>
>>> Be careful! The hook is AFAIR only run, when the user logs off. It is 
>>> not run during session purge (cleaning up expired sessions).
>>>
>>> > but I can't find a hook for logon.
>>>
>>> I think there is one - search again ;-) Or it was only proposed... 
>>> cannot remember.
>>>
>>> Masi
>>
>> take this one:
>>
>> $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['Hallo 
>> ']
>>
>> vg  Steffen
>>
>> _______________________________________________
>> TYPO3-dev mailing list
>> TYPO3-dev at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
> 






More information about the TYPO3-dev mailing list