mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
ActionController: remove obsolete code
This commit is contained in:
parent
631603aba3
commit
b4f8ef74fa
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user