[TYPO3-dev] Create and login temp user

Peter Russ peter.russ at 4many.net
Thu Mar 12 12:57:53 CET 2009


--- Original Nachricht ---
Absender:   Sebastian Gebhard
Datum:       12.03.2009 12:11:
> Martin Kutschker schrieb:
>  > You don't need a login to store data in the session.
>  >
>  > Masi
> 
> Yes I know that. But in my case I need a FE user. Storing session data 
> is not the problem.
> 
> e.g. I define a new User:
> 
> $time = time();
> $user = array(
>     'pid' => $this->conf['userPid'],
>     'tstamp' => $time,
>     'crdate' => $time,
>     'username' => $this->generateTmpUsername(),
>     'password' => $this->generateTmpUserpwd(),
>     'usergroup' => $this->conf['tmpUsergroupId']
> );
> $GLOBALS['TYPO3_DB']->exec_INSERTquery('fe_users',$user);
> 
> // Something like
> // $GLOBALS['TSFE']->fe_user->auth($user['username'], $user['password']);
> 
> Somewhere there has to be a simple method for that!?

Just check the auth service: that's the rightway to do -> tx_sv_auth



-- 
Fiat lux! Docendo discimus.
_____________________________
uon GbR

http://www.uon.li
http://www.xing.com/profile/Peter_Russ




More information about the TYPO3-dev mailing list