Skip to content

Instantly share code, notes, and snippets.

@Javlopez
Created November 10, 2011 02:44
Show Gist options
  • Save Javlopez/1353957 to your computer and use it in GitHub Desktop.
Save Javlopez/1353957 to your computer and use it in GitHub Desktop.
a1 configuration, in application/config/a1.php
<?php
return array(
'driver' => 'ORM', // orm/jelly/mango/sprig
'user_model' => 'user',
'cost' => 12, // Bcrypt Cost - any number between 4 and 31 -> higher = stronger hash
'cookie' => array(
'key' => 'a1_{name}_autologin',
'lifetime' => 1209600, // two weeks
),
'columns' => array(
'username' => 'username',
'password' => 'password',
'token' => 'token',
//'last_login'=> 'last_login', // (optional)
//'logins' => 'logins' // (optional)
),
'session' => array(
'type' => 'native' // native or database
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment