Created
August 17, 2012 09:22
-
-
Save notomato/3377345 to your computer and use it in GitHub Desktop.
Example session config with Form and Http adapters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//config/bootstrap/session.php | |
use lithium\security\Auth; | |
Auth::config(array( | |
'customer' => array( | |
'adapter' => 'Form', | |
'model' => 'Customers', | |
'fields' => array('email', 'password') | |
), | |
'administrator' => array( | |
'adapter' => 'Http', | |
'method' => 'digest', | |
'users' => array('nate' => 'li3') | |
) | |
)); | |
// http://www.slideshare.net/nateabele/the-zen-of-lithium |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment