@@ -289,15 +289,15 @@ public function forgotten_password_check($code)
289
289
* @return void
290
290
* @author Mathew
291
291
**/
292
- public function register ($ username , $ password , $ email , $ additional_data = array (), $ group_name = array ()) //need to test email activation
292
+ public function register ($ username , $ password , $ email , $ additional_data = array (), $ group_ids = array ()) //need to test email activation
293
293
{
294
294
$ this ->ion_auth_model ->trigger_events ('pre_account_creation ' );
295
295
296
296
$ email_activation = $ this ->config ->item ('email_activation ' , 'ion_auth ' );
297
297
298
298
if (!$ email_activation )
299
299
{
300
- $ id = $ this ->ion_auth_model ->register ($ username , $ password , $ email , $ additional_data , $ group_name );
300
+ $ id = $ this ->ion_auth_model ->register ($ username , $ password , $ email , $ additional_data , $ group_ids );
301
301
if ($ id !== FALSE )
302
302
{
303
303
$ this ->set_message ('account_creation_successful ' );
@@ -313,7 +313,7 @@ public function register($username, $password, $email, $additional_data = array(
313
313
}
314
314
else
315
315
{
316
- $ id = $ this ->ion_auth_model ->register ($ username , $ password , $ email , $ additional_data , $ group_name );
316
+ $ id = $ this ->ion_auth_model ->register ($ username , $ password , $ email , $ additional_data , $ group_ids );
317
317
318
318
if (!$ id )
319
319
{
@@ -499,4 +499,4 @@ public function in_group($check_group, $id=false)
499
499
return FALSE ;
500
500
}
501
501
502
- }
502
+ }
0 commit comments