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

[eluser]rashgang[/eluser]
Hi ben,

I have downloaded the latest version of ion auth and using it for my application. I have a small doubt regardign ion auth. it is very easy to use in my application.


https://github.com/benedmunds/CodeIgniter-Ion-Auth

Could you please give me suggestion that i have to create site admin panel using ion auth.

my folder structure will be

controller
admin
dashboard.php
pages.php
........ etc

I am going to create many controller like this using ion auth. is it secure to check whether the user is admin or member group like this in constructor of every controller or is it wrong to check like this and also can we rename auth to admin?

if (!$this->ion_auth->is_admin()) {

redirect(‘home’);
}

Please advise on this


Messages In This Thread
Ion Auth - Lightweight Auth System based on Redux Auth 2 - by El Forum - 08-16-2013, 10:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB