diff --git a/library/Director/Core/CoreApi.php b/library/Director/Core/CoreApi.php index 1f432990..5d3fe114 100644 --- a/library/Director/Core/CoreApi.php +++ b/library/Director/Core/CoreApi.php @@ -66,6 +66,17 @@ class CoreApi return $res[$name]; } + public function getTicketSalt() + { + // TODO: api must not be the name! + $api = $this->getObject('api', 'ApiListeners', array('ticket_salt')); + if (isset($api->attrs->ticket_salt)) { + return $api->attrs->ticket_salt; + } + + return null; + } + public function getConstants() { $constants = array();