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' => [