[TYPO3-english] FE user authentication from custom extension

Jigal van Hemert jigal.van.hemert at typo3.org
Fri Jun 10 23:49:13 CEST 2016


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.


-- 
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-english mailing list