mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +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');
|
$url = Url::fromPath('/authentication/login');
|
||||||
if ($this->getRequest()->isXmlHttpRequest()) {
|
if ($this->getRequest()->isXmlHttpRequest()) {
|
||||||
$url->setParam('_render', 'layout');
|
$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);
|
$url->setParam('redirect', $afterLogin);
|
||||||
$this->redirectNow($url);
|
$this->redirectNow($url);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user