From fadfc01d815b0ea826622bcb98509696268a8cf2 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 30 Jun 2015 11:27:33 -0400 Subject: [PATCH] TUrn on sessions and auth --- web/api/app/Controller/AppController.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/web/api/app/Controller/AppController.php b/web/api/app/Controller/AppController.php index f3011e6ff..502780a38 100644 --- a/web/api/app/Controller/AppController.php +++ b/web/api/app/Controller/AppController.php @@ -34,6 +34,17 @@ class AppController extends Controller { use CrudControllerTrait; public $components = [ + 'Session', + 'Auth' => [ + 'authenticate' => [ + 'Form' => [ + 'fields' => [ + 'username' => 'Username' , + 'password' => 'Password' + ] + ] + ] + ], 'RequestHandler', 'Crud.Crud' => [ 'actions' => [