diff --git a/library/Icinga/Web/Controller/ActionController.php b/library/Icinga/Web/Controller/ActionController.php index 797ace2e4..f0e53523f 100644 --- a/library/Icinga/Web/Controller/ActionController.php +++ b/library/Icinga/Web/Controller/ActionController.php @@ -41,6 +41,11 @@ use Icinga\Web\Window; */ class ActionController extends Zend_Controller_Action { + /** + * The login route to use when requiring authentication + */ + const LOGIN_ROUTE = 'authentication/login'; + /** * Whether the controller requires the user to be authenticated * @@ -370,7 +375,7 @@ class ActionController extends Zend_Controller_Action */ protected function redirectToLogin($redirect = null) { - $login = Url::fromPath('authentication/login'); + $login = Url::fromPath(static::LOGIN_ROUTE); if ($this->isXhr()) { if ($redirect !== null) { $login->setParam('redirect', '__SELF__');