mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 00:04:05 +02:00
CoreApi: new getTicketSalt() method
This commit is contained in:
parent
62d13d7a60
commit
d709ebc05f
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user