Skip to content

Commit

Permalink
Added _assign_libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
danmontgomery committed Aug 4, 2011
1 parent b42dc40 commit 12416b3
Show file tree
Hide file tree
Showing 6 changed files with 129 additions and 86 deletions.
23 changes: 15 additions & 8 deletions application/config/bitauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,21 @@
'special' => '[[:punct:]]'
);

/**
* Whether or not to log login attemps. If set to FALSE, users can no longer
* be locked out by invalid login attempts.
* Default: TRUE
*/
$config['log_logins'] = TRUE;

/**
* Number of invalid logins before account is locked
* Default: 3
*/
$config['invalid_logins'] = 3;

/**
* Number of minutes before a locked account is unlocked
* Number of minutes before a locked account is unlocked.
* Default: 10
*/
$config['lockout_time'] = 10;
Expand Down Expand Up @@ -131,20 +138,20 @@
$config['date_format'] = 'Y-m-d H:i:s';

/**
* Your permissions slugs. These are how you call permissions checks
* in your code. eg: if($this->bitauth->has_perm('example_perm_1'))
* Your roles. These are how you call permissions checks in your code.
* eg: if($this->bitauth->has_role('example_role'))
*/
$config['permissions'] = array(
$config['roles'] = array(

/**
* THE FIRST PERMISSION IS ALWAYS THE ADMINISTRATOR PERMISSION
* ANY USERS IN GROUPS GIVEN THIS PERMISSION WILL HAVE FULL ACCESS
* THE FIRST ROLE IS ALWAYS THE ADMINISTRATOR ROLE
* ANY USERS IN GROUPS GIVEN THIS ROLE WILL HAVE FULL ACCESS
*/
'admin' => 'User is an Administrator',
/**
* Add as many permissions slugs here as you like.
* Add as many roles here as you like.
* Follow the format:
* 'permission_slug' => 'Permission Description',
* 'role_slug' => 'Role Description',
*/

);
2 changes: 1 addition & 1 deletion application/controllers/example.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function __construct()
{
parent::__construct();

$this->load->model('bitauth');
$this->load->library('bitauth');

$this->load->helper('form');
$this->load->helper('url');
Expand Down
Loading

0 comments on commit 12416b3

Please sign in to comment.