commit 5ec4ad9d32cc05e40019334fef9545b814593e12
Author: admin <admin@www1334uf.sakura.ne.jp>
Date:   Mon Feb 22 17:53:59 2016 +0900

    2/17版のpictcodeを移植

diff --git a/app/Controller/AppController.php b/app/Controller/AppController.php
index 15b9d76..0f51375 100644
--- a/app/Controller/AppController.php
+++ b/app/Controller/AppController.php
@@ -41,8 +41,26 @@ class AppController extends Controller {
 	public $components = array(
 		'DebugKit.Toolbar',
 		'Session',
-		/*
+		'Flash',
 		'Auth' => array(
+            'loginRedirect' => array(
+                'controller' => 'users',
+                'action' => 'index'
+            ),
+            'logoutRedirect' => array(
+                'controller' => 'users',
+                'action' => 'login',
+                'home'
+            ),
+            'authenticate' => array(
+				'Form' => array(
+					'fields' => array(
+					    'username' => 'login_id', //Default is 'username' in the userModel
+						'password' => 'password'  //Default is 'password' in the userModel
+					),
+					'passwordHasher' => 'Blowfish'
+                )
+            ),
 			'flash' => array(
 				'element' => 'alert',
 				'key' => 'auth',
@@ -52,6 +70,5 @@ class AppController extends Controller {
 				)
 			)
 		)
-		 */
 	);
 }
