diff --git a/controllers/app_controller.php b/controllers/app_controller.php index 6b4614f4..d4041be2 100755 --- a/controllers/app_controller.php +++ b/controllers/app_controller.php @@ -16,7 +16,9 @@ class AppController extends Controller { $this->Auth->allow('display'); $this->Auth->authorize = 'controller'; - if($this->RequestHandler->isAjax()) { + $this->Auth->autoRedirect = false; + + if($this->RequestHandler->isAjax()) { Configure::write('debug', 0); } @@ -147,4 +149,4 @@ class AppController extends Controller { } -?> \ No newline at end of file +?> diff --git a/controllers/users_controller.php b/controllers/users_controller.php index 5e0bb9b4..625d92cd 100755 --- a/controllers/users_controller.php +++ b/controllers/users_controller.php @@ -26,7 +26,8 @@ class UsersController extends AppController { /* Auth Cookie code from http://www.webdevelopment2.com/cakephp-auth-component-tutorial-3/ */ - //– code inside this function will execute only when autoRedirect was set to false (i.e. in a beforeFilter). + //– code inside this function will execute only when autoRedirect + //was set to false (i.e. in a beforeFilter). if ($this->Auth->user()) { if (!empty($this->data) && $this->data['User']['remember_me']) { $cookie = array();