[TYPO3-english] FE user authentication from custom extension

Jan Bednarik info at bednarik.org
Sun Jun 12 18:18:05 CEST 2016


Hi,

that's what I'd like to do. Looking at the link, there's mentioned

$tsfe->fe_user->createUserSession($feUser);

My problem is that I don't have $feUser unless I select it directly from 
fe_users table.

Since it's a REST call, I can't do any redirects, can I?

Jan

Dne 10.06.2016 v 23:49 Jigal van Hemert napsal(a):
> Hi,
>
> On 10/06/2016 07:59, Jan Bednarik wrote:
>> I'm providing REST API for a website built on TYPO3. One of the
>> endpoints will be login. I'm not sure how to do it though. I don't think
>> that selecting from fe_users table where username=x and password=y is
>> the right way. Moreover, the passwords are hashed, so the REST client
>> would need to know the salt and the way the passwords are hashed.
>
> Let the core take care of authentication for you; don't try to look up
> user data and related information.
>
> https://forge.typo3.org/issues/62194#note-12
>
> Contains a discussion about logging in a FE user. The note in the link
> provides some code as an example on how to do this inside your own code.
>
>



More information about the TYPO3-english mailing list