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.
152 lines
7.7 KiB
152 lines
7.7 KiB
10 years ago
|
<?php
|
||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||
|
|
||
12 years ago
|
/*
|
||
10 years ago
|
| -------------------------------------------------------------------
|
||
|
| Aauth Config
|
||
|
| -------------------------------------------------------------------
|
||
9 years ago
|
| A library Basic Authorization for CodeIgniter 2.x and 3.x
|
||
10 years ago
|
|
|
||
|
| -------------------------------------------------------------------
|
||
|
| EXPLANATION
|
||
|
| -------------------------------------------------------------------
|
||
|
|
|
||
9 years ago
|
| ['no_permission'] If user don't have permisssion to see the page he will be redirected the page spesificed.
|
||
10 years ago
|
|
|
||
9 years ago
|
| ['admin_group'] Name of admin group
|
||
|
| ['default_group'] Name of default group, the new user is added in it
|
||
9 years ago
|
| ['public_group'] Name of Public group , people who not logged in
|
||
10 years ago
|
|
|
||
9 years ago
|
| ['db_profile'] The configuration database profile (definied in config/database.php)
|
||
10 years ago
|
|
|
||
9 years ago
|
| ['users'] The table which contains users
|
||
|
| ['groups'] The table which contains groups
|
||
|
| ['user_to_group'] The table which contains join of users and groups
|
||
|
| ['perms'] The table which contains permissions
|
||
|
| ['perm_to_group'] The table which contains permissions for groups
|
||
|
| ['perm_to_user'] The table which contains permissions for users
|
||
|
| ['pms'] The table which contains private messages
|
||
|
| ['user_variables'] The table which contains users variables
|
||
|
| ['login_attempts'] The table which contains login attempts
|
||
10 years ago
|
|
|
||
9 years ago
|
| ['remember'] Remember time (in relative format) elapsed after connecting and automatic LogOut for usage with Cookies
|
||
|
| Relative Format (e.g. '+ 1 week', '+ 1 month', '+ first day of next month')
|
||
|
| for details see http://php.net/manual/de/datetime.formats.relative.php
|
||
10 years ago
|
|
|
||
9 years ago
|
| ['max'] Maximum char long for Password
|
||
|
| ['min'] Minimum char long for Password
|
||
10 years ago
|
|
|
||
9 years ago
|
| ['additional_valid_chars'] Additional valid chars for username. Non alphanumeric characters that are allowed by default
|
||
10 years ago
|
|
|
||
9 years ago
|
| ['ddos_protection'] Enables the DDoS Protection, user will be banned temporary when he exceed the login 'try'
|
||
10 years ago
|
|
|
||
9 years ago
|
| ['recaptcha_active'] Enables reCAPTCHA (for details see www.google.com/recaptcha/admin)
|
||
9 years ago
|
| ['recaptcha_login_attempts'] Login Attempts to display reCAPTCHA
|
||
|
| ['recaptcha_siteKey'] The reCAPTCHA siteKey
|
||
|
| ['recaptcha_secret'] The reCAPTCHA secretKey
|
||
10 years ago
|
|
|
||
9 years ago
|
| ['totp_active'] Enables the Time-based One-time Password Algorithm
|
||
9 years ago
|
| ['totp_only_on_ip_change'] TOTP only on IP Change
|
||
|
| ['totp_reset_over_reset_password'] TOTP reset over reset Password
|
||
9 years ago
|
| ['totp_two_step_login'] Enables TOTP two step login
|
||
9 years ago
|
| ['totp_two_step_login_redirect'] Redirect path to TOTP Verification page used by control() & is_allowed()
|
||
10 years ago
|
|
|
||
9 years ago
|
| ['max_login_attempt'] Login attempts time interval (default 10 times in one hour)
|
||
|
| ['max_login_attempt_time_period'] Period of time for max login attempts (default "5 minutes")
|
||
9 years ago
|
| ['remove_successful_attempts'] Enables removing login attempt after successful login
|
||
10 years ago
|
|
|
||
9 years ago
|
| ['login_with_name'] Login Identificator, if TRUE username needed to login else email address.
|
||
10 years ago
|
|
|
||
9 years ago
|
| ['email'] Sender email address, used for remind_password, send_verification and reset_password
|
||
|
| ['name'] Sender name, used for remind_password, send_verification and reset_password
|
||
9 years ago
|
| ['email_config'] Array of Config for CI's Email Library
|
||
10 years ago
|
|
|
||
9 years ago
|
| ['verification'] User Verification, if TRUE sends a verification email on account creation.
|
||
|
| ['verification_link'] Link for verification without site_url or base_url
|
||
|
| ['reset_password_link'] Link for reset_password without site_url or base_url
|
||
10 years ago
|
|
|
||
9 years ago
|
| ['hash'] Name of selected hashing algorithm (e.g. "md5", "sha256", "haval160,4", etc..)
|
||
9 years ago
|
| Please, run hash_algos() for know your all supported algorithms
|
||
9 years ago
|
| ['use_password_hash'] Enables to use PHP's own password_hash() function with BCrypt, needs PHP5.5 or higher
|
||
9 years ago
|
| ['password_hash_algo'] password_hash algorithm (PASSWORD_DEFAULT, PASSWORD_BCRYPT)
|
||
|
| for details see http://php.net/manual/de/password.constants.php
|
||
|
| ['password_hash_options'] password_hash options array
|
||
|
| for details see http://php.net/manual/en/function.password-hash.php
|
||
|
|
|
||
9 years ago
|
| ['pm_encryption'] Enables PM Encryption, needs configured CI Encryption Class.
|
||
9 years ago
|
| for details see: http://www.codeigniter.com/userguide2/libraries/encryption.html
|
||
|
| ['pm_cleanup_max_age'] PM Cleanup max age (in relative format), PM's are older than max age get deleted with 'cleanup_pms()'
|
||
|
| Relative Format (e.g. '2 week', '1 month')
|
||
|
| for details see http://php.net/manual/de/datetime.formats.relative.php
|
||
10 years ago
|
|
|
||
10 years ago
|
*/
|
||
|
$config_aauth = array();
|
||
|
|
||
|
$config_aauth["default"] = array(
|
||
6 years ago
|
'no_permission' => false,
|
||
10 years ago
|
|
||
9 years ago
|
'admin_group' => 'admin',
|
||
|
'default_group' => 'default',
|
||
|
'public_group' => 'public',
|
||
10 years ago
|
|
||
9 years ago
|
'db_profile' => 'default',
|
||
10 years ago
|
|
||
9 years ago
|
'users' => 'aauth_users',
|
||
|
'groups' => 'aauth_groups',
|
||
|
'user_to_group' => 'aauth_user_to_group',
|
||
|
'perms' => 'aauth_perms',
|
||
|
'perm_to_group' => 'aauth_perm_to_group',
|
||
|
'perm_to_user' => 'aauth_perm_to_user',
|
||
6 years ago
|
'pms' => 'aauth_chatmsg',
|
||
9 years ago
|
'user_variables' => 'aauth_user_variables',
|
||
|
'login_attempts' => 'aauth_login_attempts',
|
||
6 years ago
|
'log' => 'aauth_log',
|
||
10 years ago
|
|
||
9 years ago
|
'remember' => ' +3 days',
|
||
10 years ago
|
|
||
9 years ago
|
'max' => 13,
|
||
|
'min' => 5,
|
||
10 years ago
|
|
||
9 years ago
|
'additional_valid_chars' => array(),
|
||
10 years ago
|
|
||
9 years ago
|
'ddos_protection' => true,
|
||
10 years ago
|
|
||
9 years ago
|
'recaptcha_active' => false,
|
||
|
'recaptcha_login_attempts' => 4,
|
||
|
'recaptcha_siteKey' => '',
|
||
|
'recaptcha_secret' => '',
|
||
10 years ago
|
|
||
9 years ago
|
'totp_active' => false,
|
||
|
'totp_only_on_ip_change' => false,
|
||
|
'totp_reset_over_reset_password' => false,
|
||
|
'totp_two_step_login_active' => false,
|
||
|
'totp_two_step_login_redirect' => '/account/twofactor_verification/',
|
||
10 years ago
|
|
||
9 years ago
|
'max_login_attempt' => 10,
|
||
|
'max_login_attempt_time_period' => "5 minutes",
|
||
|
'remove_successful_attempts' => true,
|
||
10 years ago
|
|
||
9 years ago
|
'login_with_name' => false,
|
||
10 years ago
|
|
||
9 years ago
|
'email' => '[email protected]',
|
||
|
'name' => 'Emre Akay',
|
||
9 years ago
|
'email_config' => false,
|
||
10 years ago
|
|
||
9 years ago
|
'verification' => false,
|
||
|
'verification_link' => '/account/verification/',
|
||
|
'reset_password_link' => '/account/reset_password/',
|
||
10 years ago
|
|
||
9 years ago
|
'hash' => 'sha256',
|
||
|
'use_password_hash' => false,
|
||
|
'password_hash_algo' => PASSWORD_DEFAULT,
|
||
|
'password_hash_options' => array(),
|
||
9 years ago
|
|
||
9 years ago
|
'pm_encryption' => false,
|
||
9 years ago
|
'pm_cleanup_max_age' => "3 months",
|
||
10 years ago
|
);
|
||
|
|
||
|
$config['aauth'] = $config_aauth['default'];
|
||
12 years ago
|
|
||
10 years ago
|
/* End of file aauth.php */
|
||
6 years ago
|
/* Location: ./application/config/aauth.php */
|