/
auth.template.php
56 lines (49 loc) · 1.64 KB
/
auth.template.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* Auth library configuration. By default, Auth will use the controller
* database connection. If Database is not loaded, it will use use the default
* database group.
*
* In order to log a user in, a user must have the `login` role. You may create
* and assign any other role to your users.
*/
/**
* Driver to use for authentication. By default, file and ORM are available.
*/
$config['driver'] = 'ORM';
/**
* Type of hash to use for passwords. Any algorithm supported by the hash function
* can be used here. Note that the length of your password is determined by the
* hash type + the number of salt characters.
* Note: This is unrelated to the hash settings in the Openid library.
* @see http://php.net/hash
* @see http://php.net/hash_algos
*/
$config['hash_method'] = 'sha1';
/**
* Defines the hash offsets to insert the salt at. The password hash length
* will be increased by the total number of offsets.
* CHANGE ME: THIS SHOULD BE UNIQUE TO YOUR DEPLOYMENT
*/
$config['salt_pattern'] = '8, 10, 12, 21, 22, 23, 29, 34, 38, 39';
/**
* Set the auto-login (remember me) cookie lifetime, in seconds. The default
* lifetime is two weeks.
*/
$config['lifetime'] = 1209600;
/**
* Set the session key that will be used to store the current user.
*/
$config['session_key'] = 'auth_user';
/**
* Usernames (keys) and hashed passwords (values) used by the File driver.
*/
$config['users'] = array
(
// 'admin' => '4ccd0e25c2a7ffefd4b92ecbbd4781752920145f826a881073',
);
/**
* Allowed Password Length. 127 is the upper limit.
* ie. '8,127' says passwords must be between 8 and 127 characters long
*/
$config['password_length'] = '1,127';