[TYPO3-dev] Tapping into 'auth' Service Type
Frank Weindel
fjw24 at drexel.edu
Thu Oct 2 20:03:26 CEST 2008
Xavier Perseguers wrote:
> Hello,
>
>> I am trying to create an extension that will modify a FE user's log-in
>> information right after they first log-in with a username and
>> password, but before the username and password is sent to be
>> authenticated. It should just md5 hash the password and put it back to
>> be authenticated.
>>
>> I'm looking into services for this. There is a service called 'auth'
>> with a subType 'getUserFE', and I thought if I could tap into this I
>> could succeed in what I want to do. So I used the extension wizard to
>> add a service to my extension. But I noticed that the 'auth',
>> 'getUserFE' service is called by 'class.t3lib_userauth.php' before my
>> service is even added.
>
> You may create your own extension to do that (I finished this 10 min
> ago) but I think it would be worth having a look at extension kb_md5fepw
> which does exactly this and hooks to the frontend user authentication.
>
> Regards
>
I've looked at kb_md5fepw, but it does a lot more than I require. The
hook solution works great. I have it so that any POST var name that is
'pass' or begins with 'pass__' will automatically be md5'ed. 'pass' for
login boxes, 'pass__' for my custom registration plugin. Its also
reconfigurable if needed.
Frank Weindel
More information about the TYPO3-dev
mailing list