function index()
{
if ($this->tank_auth->is_logged_in())
{
$this->load->view('welcome_message');
}
else
{
redirect('/auth/login/');
}
}
}
It is possible to manage users role with tank auth ???
If it is not possible, can you tell my the way to extend the thank auth with role and or profile for users?[/quote]
Yes, it's correct. Also you can use get_username (or get_user_id) method to identify user when he/she is logged in.
Role management isn't supported in this version. I think that role management shouldn't be a part of authorisation library. Maybe there will be an extension for the lib, to manage user rights, give them access to different pages and moderate their profiles... But definitely it is not a direction in which I'm going to develop the library right now. I'd better add OpenId support to extend login options.
What about user profiles -- they are supported already. To add new fields to user profile you have to:
- add corresponding fields to user_profiles table in database
- create a page for editing this data by registered user.
This edit page is supposed to be added in next version of the library.