You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
98 lines
1.9 KiB
98 lines
1.9 KiB
7 years ago
|
<?php
|
||
|
/**
|
||
|
* Fuel is a fast, lightweight, community driven PHP5 framework.
|
||
|
*
|
||
|
* @package Fuel
|
||
|
* @version 1.8
|
||
|
* @author Fuel Development Team
|
||
|
* @license MIT License
|
||
|
* @copyright 2010 - 2016 Fuel Development Team
|
||
|
* @link http://fuelphp.com
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* NOTICE:
|
||
|
*
|
||
|
* If you need to make modifications to the default configuration, copy
|
||
|
* this file to your app/config folder, and make them in there.
|
||
|
*
|
||
|
* This will allow you to upgrade fuel without losing your custom config.
|
||
|
*/
|
||
|
|
||
|
return array(
|
||
|
|
||
|
/**
|
||
|
* DB connection, leave null to use default
|
||
|
*/
|
||
|
'db_connection' => null,
|
||
|
|
||
|
/**
|
||
|
* DB write connection, leave null to use same value as db_connection
|
||
|
*/
|
||
|
'db_write_connection' => null,
|
||
|
|
||
|
/**
|
||
|
* DB table name for the user table
|
||
|
*/
|
||
|
'table_name' => 'users',
|
||
|
|
||
|
/**
|
||
|
* Choose which columns are selected, must include: username, password, email, last_login,
|
||
|
* login_hash, group & profile_fields
|
||
|
*/
|
||
|
'table_columns' => array('*'),
|
||
|
|
||
|
/**
|
||
|
* prefix to use for the cache
|
||
|
*/
|
||
|
'cache_prefix' => 'auth',
|
||
|
|
||
|
/**
|
||
|
* This will allow you to use the group & acl driver for non-logged in users
|
||
|
*/
|
||
|
'guest_login' => true,
|
||
|
|
||
|
/**
|
||
|
* Remember-me functionality
|
||
|
*/
|
||
|
'remember_me' => array(
|
||
|
/**
|
||
|
* Whether or not remember me functionality is enabled
|
||
|
*/
|
||
|
'enabled' => false,
|
||
|
|
||
|
/**
|
||
|
* Name of the cookie used to record this functionality
|
||
|
*/
|
||
|
'cookie_name' => 'rmcookie',
|
||
|
|
||
|
/**
|
||
|
* Remember me expiration (default: 31 days)
|
||
|
*/
|
||
|
'expiration' => 86400 * 31,
|
||
|
),
|
||
|
|
||
|
/**
|
||
|
* This will allow the same user to be logged in multiple times.
|
||
|
*
|
||
|
* Note that this is less secure, as session hijacking countermeasures have to
|
||
|
* be disabled for this to work!
|
||
|
*/
|
||
|
'multiple_logins' => false,
|
||
|
|
||
|
/**
|
||
|
* Salt for the login hash
|
||
|
*/
|
||
|
'login_hash_salt' => 'put_some_salt_in_here',
|
||
|
|
||
|
/**
|
||
|
* $_POST key for login username
|
||
|
*/
|
||
|
'username_post_key' => 'username',
|
||
|
|
||
|
/**
|
||
|
* $_POST key for login password
|
||
|
*/
|
||
|
'password_post_key' => 'password',
|
||
|
);
|