benedmunds/CodeIgniter-Ion-Auth — Issue #136: Documentation bug
Author: urbankid
Created: 2011-11-26 10:28:16+00:00
State: open

Hi,

I found a bug in the documentation. The registrer() function, the $group_name var should be an array, if not an exception error would occur.

Keep up the great work!

---

$username = 'benedmunds';
$password = '12345678';
$email = 'ben.edmunds@gmail.com';
$additional_data = array(
'first_name' => 'Ben',
last_name' => 'Edmunds',
);
$group_name[] = 'users';

$this->ion_auth->register($username, $password, $email, $additional_data, $group_name)