CoreApi: new getTicketSalt() method

This commit is contained in:
Thomas Gelf 2016-02-05 16:29:53 +01:00
parent 62d13d7a60
commit d709ebc05f
1 changed files with 11 additions and 0 deletions

View File

@ -66,6 +66,17 @@ class CoreApi
return $res[$name]; 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() public function getConstants()
{ {
$constants = array(); $constants = array();