Here are the steps for you
- Uncomment the
Auth
module in bootstrap.php (you have done it already)
- in
ORM Module
, yes in ORM Module
you will find auth-schema-mysql.sql
& auth-schema-postgresql.sql
. Use the one you needed.
configure the config file auth.php
as needed. Below is the configuration I am using.
<?php defined('SYSPATH') or die('No direct access allowed.');
return array(
'driver' => 'ORM',
'hash_method' => 'sha256',
'hash_key' => "ica_hash_key",
'lifetime' => Date::MINUTE * 30,
'session_type' => 'database',
'session_key' => 'auth_user',
);
set Cookie::$salt
in bootstrap.php
. Add this line in your bootstrap.php
.
Cookie::$salt = 'YourSecretCookieSalt';
you are done with Auth module
configuration ;)
As you have configured auth module, obviously you have executed the sql script. You will get users
, roles
, roles_users
& users_tokens
table created in your database.
Now you can change users
table with adding more column. As you are using ORM
, Model_User
is already there for you which is an ORM
:)
So this should be all, i believe.