Skip to content

Instantly share code, notes, and snippets.

@notomato
Created August 17, 2012 09:22
Show Gist options
  • Save notomato/3377345 to your computer and use it in GitHub Desktop.
Save notomato/3377345 to your computer and use it in GitHub Desktop.
Example session config with Form and Http adapters
<?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