From b4f8ef74fa9c46b29aa6895947cd274f7e36c473 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 22 Jun 2014 15:20:55 +0200 Subject: [PATCH] ActionController: remove obsolete code --- library/Icinga/Web/Controller/ActionController.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/library/Icinga/Web/Controller/ActionController.php b/library/Icinga/Web/Controller/ActionController.php index 9db40a259..b783ed6c0 100644 --- a/library/Icinga/Web/Controller/ActionController.php +++ b/library/Icinga/Web/Controller/ActionController.php @@ -317,15 +317,6 @@ class ActionController extends Zend_Controller_Action $url = Url::fromPath('/authentication/login'); if ($this->getRequest()->isXmlHttpRequest()) { $url->setParam('_render', 'layout'); -/* - $this->_response->setHttpResponseCode(401); - $this->_helper->json( - array( - 'exception' => 'You are not logged in', - 'redirectTo' => Url::fromPath('/authentication/login')->getAbsoluteUrl() - ) - ); -*/ } $url->setParam('redirect', $afterLogin); $this->redirectNow($url);