Skip to content
Permalink
Browse files

start exploring authentication process

  • Loading branch information
techxplorer committed Aug 26, 2011
1 parent 00a5d4b commit fa650e04afce8457d56e2a112d7c59a0bb76bda7
@@ -1,2 +1,4 @@
# ignore build files and other annoying cruft
.DS_Store
# ignore files created by accessing the site in the resources directory
marques/app/resources/*
@@ -60,7 +60,7 @@
* This file contains configuration for session (and/or cookie) storage, and user or web service
* authentication.
*/
// require __DIR__ . '/bootstrap/session.php';
require __DIR__ . '/bootstrap/session.php';
/**
* This file contains your application's globalization rules, including inflections,
@@ -81,4 +81,14 @@
// require __DIR__ . '/bootstrap/console.php';
/**
* Custom MARQUes Settings
*/
/**
* automatically filter passwords so they're hashed
*/
require __DIR__ . '/bootstrap/filters.php';
?>
@@ -35,14 +35,14 @@
* @see lithium\action\Request::$data
* @see lithium\security\Auth
*/
// use lithium\security\Auth;
use lithium\security\Auth;
// Auth::config(array(
// 'default' => array(
// 'adapter' => 'Form',
// 'model' => 'Users',
// 'fields' => array('username', 'password')
// )
// ));
Auth::config(array(
'default' => array(
'adapter' => 'Form',
'model' => 'Users',
'fields' => array('username', 'password')
)
));
?>
@@ -19,6 +19,12 @@
use lithium\net\http\Router;
use lithium\core\Environment;
/**
* add custom routes for the MARQUes system
*/
Router::connect('/login', 'Sessions::add');
Router::connect('/logout', 'Sessions::delete');
/**
* Here, we are connecting `'/'` (the base path) to controller called `'Pages'`,
* its action called `view()`, and we pass a param to select the view file
0 marques/app/resources/g11n/empty 100644 → 100755
No changes.
No changes.
No changes.
No changes.

This file was deleted.

0 comments on commit fa650e0

Please sign in to comment.
You can’t perform that action at this time.