Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2

[eluser]RockyS[/eluser]
First I must say thank you for this awesome module!

Secondly I have a question, is there any way I can protect whole define page (ex: url/index.php/admin) without writing
if (!$this->ion_auth->logged_in())
{
redirect('user/login');
}
elseif (!$this->ion_auth->is_admin())
{
//redirect them to the home page because they must be an administrator to view this
redirect($this->config->item('base_url'), 'refresh');
}
in every controller that loads views?


Messages In This Thread
Ion Auth - Lightweight Auth System based on Redux Auth 2 - by El Forum - 08-04-2012, 06:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB