I’m using CakePHP 1.3 version for this project.
I am working with Auth for Users and Admins login stuff.
I want to manage User & Admin login separately, any ideas how? I means users credentials are in Users table and Admin credentials in Admin table, and both should be logged into via from their separate login pages.
Thanks !
For complicated, multi roles application where you have different actors having different resources they can access, you can go with ACL
http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application
But if you only have admin and user, it’s probably preferable to just put the info in the same table (rather than having separate tables) and have a roles table along with roles_users table for mapping the roles, and in your controller, you manually define the role access.
As far as 1.2 goes, ACL is not very straightforward to implement and might be an overkill if you just need some sort of simple separation.