User registration via PHP API ignores parameters - Joomla! Forum - community, help and support


i have php script want call mobile app, registers email address, uses random password, , automatically activates & asks user reset password upon first login.

this $data array i'm passing usermodelregistration register function:

code: select all

$data = array(
  'username' => $username,
  'name' => $name,
  'email1' => $email,
  'password1' => $password, // first password field
  'password2' => $password, // confirm password field
  'sendemail'  => '0',
  'block' => '0',
  'activation' => '0',
  'groups' =>array("2","10"));


the sendemail, activation , groups parameters not doing anything... tried changing them around, using 0 instead of '0' , played around order, nothing helped.

is possible?

if isn't, there way, make simple email registration registers email , asks password reset?






Comments

Popular posts from this blog

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support