<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Name:  Ion Auth Config
*
* Author: Ben Edmunds
* 		  ben.edmunds@gmail.com
*         @benedmunds
*
* Added Awesomeness: Phil Sturgeon
*
* Location: http://github.com/benedmunds/ion_auth/
*
* Created:  10.01.2009
*
* Description:  Modified auth system based on redux_auth with extensive customization.  This is basically what Redux Auth 2 should be.
* Original Author name has been kept but that does not mean that the method has not been modified.
*
*/

	/**
	 * Tables.
	 **/
	$config['tables']['groups']  = 'groups';
	$config['tables']['users']   = 'users';
	$config['tables']['meta']    = 'meta';

	/**
	 * Site Title, example.com
	 */
	$config['site_title']		   = "CFEngine";

         /*
	 * Admin Email, admin@example.com
	 */
	$config['admin_email']		   = "admin@cfengine.com";

	/**
	 * Default group, use name
	 */
	$config['default_group']       = 'members';

	/**
	 * Default administrators group, use name
	 */
	$config['admin_group']         = 'admin';

	/**
	 * Meta table column you want to join WITH.
	 * Joins from users.id
	 **/
	$config['join']                = 'user_id';

	/**
	 * Columns in your meta table,
	 * id not required.
	 **/
	$config['columns']             = array('first_name', 'last_name', 'company', 'phone');

	/**
	 * A database column which is used to
	 * login with.
	 **/
	$config['identity']            = 'username';

	/**
	 * Minimum Required Length of Password
	 **/
	$config['min_password_length'] = 8;

	/**
	 * Maximum Allowed Length of Password
	 **/
	$config['max_password_length'] = 100;

	/**
	 * Email Activation for registration
	 **/
	$config['email_activation']    = false;

	/**
	 * Allow users to be remembered and enable auto-login
	 **/
	$config['remember_users']      = true;

	/**
	 * How long to remember the user (seconds)
	 **/
	$config['remember_user_expire'] = 60 * 60 * 24 * 7; // 7 days

	$config['user_expire'] = 60 * 60 * 24; // 1 day

	/**
	 * Extend the users cookies everytime they auto-login
	 **/
	$config['user_extend_on_login'] = false;
/**
* Type of email to send (HTML or text)
* Default : html
**/
$config['email_type'] = 'html';

	/**
	 * Folder where email templates are stored.
     * Default : auth/
	 **/
	$config['email_templates']     = 'auth/email/';

	/**
	 * activate Account Email Template
     * Default : activate.tpl.php
	 **/
	$config['email_activate']   = 'activate.tpl.php';

	/**
	 * Forgot Password Email Template
     * Default : forgot_password.tpl.php
	 **/
	$config['email_forgot_password']   = 'forgot_password.tpl.php';

	/**
	 * Forgot Password Complete Email Template
     * Default : new_password.tpl.php
	 **/
	$config['email_forgot_password_complete']   = 'new_password.tpl.php';

	/**
	 * Salt Length
	 **/
	$config['salt_length'] = 10;

	/**
	 * Should the salt be stored in the database?
	 * This will change your password encryption algorithm,
	 * default password, 'password', changes to
	 * fbaa5e216d163a02ae630ab1a43372635dd374c0 with default salt.
	 **/
	$config['store_salt'] = false;

	/**
	 * Message Start Delimiter
	 **/
	$config['message_start_delimiter'] = '<label>';

	/**
	 * Message End Delimiter
	 **/
	$config['message_end_delimiter'] = '</label>';

	/**
	 * Error Start Delimiter
	 **/
	$config['error_start_delimiter'] = '<label>';

	/**
	 * Error End Delimiter
	 **/
	$config['error_end_delimiter'] = '</label>';

        /**
	 * Info Start Delimiter
	 **/
	$config['info_start_delimiter'] = '<p class="info">';

	/**
	 * Info End Delimiter
	 **/
	$config['info_end_delimiter'] = '</p>';



/* End of file ion_auth.php */
/* Location: ./system/application/config/ion_auth.php */