From 51127b4d73f82a3a855dc8b7c8aa6a0776a480d3 Mon Sep 17 00:00:00 2001 From: Oreolek Date: Wed, 29 Jan 2014 17:44:40 +0700 Subject: [PATCH] auth config pruning part 1 --- .gitignore | 1 + application/config/auth.php.example | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 application/config/auth.php.example diff --git a/.gitignore b/.gitignore index b6deaac..337dfb6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ application/config/database.php +application/config/auth.php application/config/stats.php application/config/email.php application/config/sphinxql.php diff --git a/application/config/auth.php.example b/application/config/auth.php.example new file mode 100644 index 0000000..7f073e1 --- /dev/null +++ b/application/config/auth.php.example @@ -0,0 +1,15 @@ + 'File', + 'users' => array( + 'admin' => 'password-hash' + // generate the hash using hash_hmac('sha256', $str, "hashing_key") + ), + 'hash_method' => 'sha256', + 'hash_key' => "hashing_key", + 'lifetime' => 1209600, + 'session_key' => 'auth_user', + +);