User Guide | General Settings

The key concept of the flexi auth library is to give the developer a toolbox of functions that they can use to build a user authentication system matching the custom specifications required by their site.

One of the ways that the library enhances the customisation of the authentication system is by allowing many of the internal library settings to be defined by the developer via the libraries config file.

General Settings

Config Setup Information

General Config File Settings

Help with the Table Configuration

Show / Hide Help

Config Name: The name that flexi auth internally references the config setting by.

Default: The default value set within the config file.

Data Type: The data type that is expected by the config setting.

  • bool : Requires a boolean value of 'TRUE' or 'FALSE'.
  • string : Requires a textual value.
  • int : Requires a numeric value. It does not matter whether the value is an integer, float, decimal etc.
  • array : Requires an array.
  • datetime : Requires a datetime value. Typically either a MySQL DATETIME (2000-12-31 12:00:00) or UNIX timestamp (1234567890)

Config File Location

The config file is located in CodeIgniters 'config' folder and is named 'flexi_auth.php'.

General Config File Settings

Many of flexi auths automatic functions are customisable and can even be turned on and off to suit different websites.

// Set whether an incremented number is added to the end of an unavailable username.
$config['settings']['auto_increment_username'] = FALSE;

// Set whether accounts are suspended by default on registration / inserting user.
$config['settings']['suspend_new_accounts'] = FALSE;

// Set a time limit to grant users instant login access, once expired, they are locked out until they
// activate their account via an activation email sent to them.
$config['settings']['account_activation_time_limit'] = 0;

// Set the id of the default group that new users will be added to unless otherwise specified.
$config['settings']['default_group_id'] = 1;

// Set which sources are used to retrieve privileges. Can be defined either through privileges 
// assigned per user or via privileges assigned to a users user group.
// Demo default: user and user group. Library default: user only
$config['settings']['privilege_sources']= array('user','group');