[Typo3-dev] api for fe user creation

Franz Holzinger franz at fholzinger.com
Tue Jul 26 19:31:09 CEST 2005


> 
> is there an api-function for fe user creation or some docs somewhere ;)
> 
> tia alex

Hello,

use the DBAL-Api: (example from zk_products/tt_products)

$insertFields = array(
	'pid' => $this->conf['PIDuserFolder'],
	'tstamp' => time(),
	'username' => $username,
	'password' => $this->password,
	'usergroup' => $this->conf['memberOfGroup'],
	'uid' => $this->personInfo['feusers_uid'],
	'name' => $this->personInfo['name'],
	'address' => $this->personInfo['address'],
	'telephone' => $this->personInfo['telephone'],
	'fax' => $this->personInfo['fax'],
	'email' => $this->personInfo['email'],
	'zip' => $this->personInfo['zip'],
	'city' => $this->personInfo['city'],
	'country' => $this->personInfo['country'],
	'crdate' => time()
);
$res = $GLOBALS['TYPO3_DB']->exec_INSERTquery('fe_users', $insertFields);


Franz




More information about the TYPO3-dev mailing list