CoreApi: new getTicketSalt() method
This commit is contained in:
parent
62d13d7a60
commit
d709ebc05f
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue