EllisLab text mark
Advanced Search
     
Routing to specific Controller with FreakAuth
Posted: 03 July 2007 10:26 AM   [ Ignore ]
Joined: 2007-05-15
8 posts

Hi all together.

I use FreakAuth_Light and want to route to a specific controller for various users. For example i have 4 users—>

superadmin
admin
other_guy
user 

When each of this users now want to log them in they get individual routed.

I want to route the superadmin to the normal admin interface from FreakAuth. The admin to an other controller and the other_guy to his specific controller. How can i achive this?

 
Posted: 03 July 2007 03:10 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Joined: 2007-05-15
8 posts

problem is still present

 
Posted: 03 July 2007 06:56 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2007-06-11
2985 posts

user the FAL check function.

if check(admin){

redirect(‘admincp/index’);

}

else
{
redirect(‘home’);
}

 Signature 

————————
Blog | Twitter | GitHub | BitBucket
————————-
PyroCMS - open source modular CMS built with CodeIgniter
PancakeApp - Simple, hosted invoicing/w project management