Tank Auth v1.0 (CI authentication library) |
[eluser]rip_pit[/eluser]
Simply great! i've tested it and it works like a charm! I will just notice that my databases script is slightly different, based on my existing CI tables, I modified the values for : ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO INCREMENT: removed Then i wrote i "quick start" tutorial to clarify some points after successfull installation. BASIC ROLE MANAGEMENT : QUICK START TUTORIAL here is a quick start guide after integration of the "basic role management" system "How to easily add basic role management to Tank Auth" by theshiftexchange 1. In the "roles" table, create a new row per possible role, ex: Code: -- THESE ARE SAMPLE ROLES, YOU CAN MODIFY THE VALUES BEFORE TO INSERT THEM IN THE TABLE 2. In the "user_roles" table, you need to create 1 row per user role. Note that 1 user can have several rows (1 per role), ex: Code: -- assigning role #3 to user #1. 3. In your controller, check user role by giving role name (case sensitive) to the method, ex: Code: if ($this->tank_auth->check_roles('Purchasing')) Note that you'll have to manually set every user's role into your DB, or write your own tank_auth component to manage user's roles. Thanks to theshiftexchange and the tank_auth author and contributors |
Welcome Guest, Not a member yet? Register Sign In |