Skip to content

Commit 27ffde2

Browse files
committed
Renamed group_names on register method to be group_ids
Resolves issue benedmunds#412
1 parent f434413 commit 27ffde2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libraries/Ion_auth.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -289,15 +289,15 @@ public function forgotten_password_check($code)
289289
* @return void
290290
* @author Mathew
291291
**/
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
293293
{
294294
$this->ion_auth_model->trigger_events('pre_account_creation');
295295

296296
$email_activation = $this->config->item('email_activation', 'ion_auth');
297297

298298
if (!$email_activation)
299299
{
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);
301301
if ($id !== FALSE)
302302
{
303303
$this->set_message('account_creation_successful');
@@ -313,7 +313,7 @@ public function register($username, $password, $email, $additional_data = array(
313313
}
314314
else
315315
{
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);
317317

318318
if (!$id)
319319
{
@@ -499,4 +499,4 @@ public function in_group($check_group, $id=false)
499499
return FALSE;
500500
}
501501

502-
}
502+
}

0 commit comments

Comments
 (0)