while creating a new user using ion_auth i have added
echo anchor(‘auth/create_user’, ‘Create User’);
at the end of auth/login view.
now when i click on this link it cycles back and brings me back to the auth/login view.
in routes i made the following additions:
$route[‘auth/create_user’] = ‘auth/create_user’;
$route[‘default_controller’] = ‘auth/login’;
$route[’(:any)’] = ‘auth/login’;
however when i comment out the
if (!$this->ion_auth->logged_in() || !$this->ion_auth->is_admin())
in the auth/create_user method and then click on the Create User link it is working fine and taking me to the auth/create_user link and I can create a user.
I cant figure out why this is happening…