Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
3,760 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | ||
|
||
/* | ||
| ------------------------------------------------------------------------- | ||
| ------------------------------------------------------------------------- | ||
| This file lets you define parameters for sending emails. | ||
| Please see the user guide for info: | ||
| | ||
| http://codeigniter.com/user_guide/libraries/email.html | ||
| | ||
*/ | ||
$config['mailtype'] = 'html'; | ||
$config['charset'] = 'utf-8'; | ||
$config['newline'] = '\r\n'; | ||
|
||
|
||
/* End of file email.php */ | ||
/* Location: ./application/config/email.php */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Website details | ||
| | ||
| These details are used in emails sent by authentication library. | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
$config['website_name'] = 'Your project'; | ||
$config['webmaster_email'] = 'webmaster@your-site.com'; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Security settings | ||
| | ||
| The library uses PasswordHash library for operating with hashed passwords. | ||
| 'phpass_hash_portable' = Can passwords be dumped and exported to another server. If set to FALSE then you won't be able to use this database on another server. | ||
| 'phpass_hash_strength' = Password hash strength. | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
$config['phpass_hash_portable'] = FALSE; | ||
$config['phpass_hash_strength'] = 8; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Registration settings | ||
| | ||
| 'allow_registration' = Registration is enabled or not | ||
| 'captcha_registration' = Registration uses CAPTCHA | ||
| 'email_activation' = Requires user to activate their account using email after registration. | ||
| 'email_activation_expire' = Time before users who don't activate their account getting deleted from database. Default is 48 hours (60*60*24*2). | ||
| 'email_account_details' = Email with account details is sent after registration (only when 'email_activation' is FALSE). | ||
| 'use_username' = Username is required or not. | ||
| | ||
| 'username_min_length' = Min length of user's username. | ||
| 'username_max_length' = Max length of user's username. | ||
| 'password_min_length' = Min length of user's password. | ||
| 'password_max_length' = Max length of user's password. | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
$config['allow_registration'] = TRUE; | ||
$config['captcha_registration'] = TRUE; | ||
$config['email_activation'] = TRUE; | ||
$config['email_activation_expire'] = 60*60*24*2; | ||
$config['email_account_details'] = TRUE; | ||
$config['use_username'] = TRUE; | ||
|
||
$config['username_min_length'] = 4; | ||
$config['username_max_length'] = 20; | ||
$config['password_min_length'] = 4; | ||
$config['password_max_length'] = 20; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Login settings | ||
| | ||
| 'login_by_username' = Username can be used to login. | ||
| 'login_by_email' = Email can be used to login. | ||
| You have to set at least one of 2 settings above to TRUE. | ||
| 'login_by_username' makes sense only when 'use_username' is TRUE. | ||
| | ||
| 'login_record_ip' = Save in database user IP address on user login. | ||
| 'login_record_time' = Save in database current time on user login. | ||
| | ||
| 'login_count_attempts' = Count failed login attempts. | ||
| 'login_max_attempts' = Number of failed login attempts before CAPTCHA will be shown. | ||
| 'login_attempt_expire' = Time to live for every attempt to login. Default is 24 hours (60*60*24). | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
$config['login_by_username'] = TRUE; | ||
$config['login_by_email'] = TRUE; | ||
$config['login_record_ip'] = TRUE; | ||
$config['login_record_time'] = TRUE; | ||
$config['login_count_attempts'] = TRUE; | ||
$config['login_max_attempts'] = 5; | ||
$config['login_attempt_expire'] = 60*60*24; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Auto login settings | ||
| | ||
| 'autologin_cookie_name' = Auto login cookie name. | ||
| 'autologin_cookie_life' = Auto login cookie life before expired. Default is 2 months (60*60*24*31*2). | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
$config['autologin_cookie_name'] = 'autologin'; | ||
$config['autologin_cookie_life'] = 60*60*24*31*2; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Forgot password settings | ||
| | ||
| 'forgot_password_expire' = Time before forgot password key become invalid. Default is 15 minutes (60*15). | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
$config['forgot_password_expire'] = 60*15; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Captcha | ||
| | ||
| You can set captcha that created by Auth library in here. | ||
| 'captcha_path' = Directory where the catpcha will be created. | ||
| 'captcha_fonts_path' = Font in this directory will be used when creating captcha. | ||
| 'captcha_font_size' = Font size when writing text to captcha. Leave blank for random font size. | ||
| 'captcha_grid' = Show grid in created captcha. | ||
| 'captcha_expire' = Life time of created captcha before expired, default is 3 minutes (180 seconds). | ||
| 'captcha_case_sensitive' = Captcha case sensitive or not. | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
$config['captcha_path'] = 'captcha/'; | ||
$config['captcha_fonts_path'] = 'captcha/fonts/5.ttf'; | ||
$config['captcha_width'] = 200; | ||
$config['captcha_height'] = 50; | ||
$config['captcha_font_size'] = 14; | ||
$config['captcha_grid'] = FALSE; | ||
$config['captcha_expire'] = 180; | ||
$config['captcha_case_sensitive'] = TRUE; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| reCAPTCHA | ||
| | ||
| 'use_recaptcha' = Use reCAPTCHA instead of common captcha | ||
| You can get reCAPTCHA keys by registering at http://recaptcha.net | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
$config['use_recaptcha'] = FALSE; | ||
$config['recaptcha_public_key'] = ''; | ||
$config['recaptcha_private_key'] = ''; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Database settings | ||
| | ||
| 'db_table_prefix' = Table prefix that will be prepended to every table name used by the library | ||
| (except 'ci_sessions' table). | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
$config['db_table_prefix'] = ''; | ||
|
||
|
||
/* End of file tank_auth.php */ | ||
/* Location: ./application/config/tank_auth.php */ |
Oops, something went wrong.