Add support for Privacy Policy, Terms of Service, and CAPTCHA
This commit is contained in:
parent
756297671f
commit
c866e2f696
22 changed files with 795 additions and 138 deletions
|
@ -293,6 +293,17 @@
|
|||
{
|
||||
$method = StandardMethods::tryFrom($rpcRequest->getMethod());
|
||||
|
||||
try
|
||||
{
|
||||
$method->checkAccess($clientRequest);
|
||||
}
|
||||
catch (StandardException $e)
|
||||
{
|
||||
$response = $e->produceError($rpcRequest);
|
||||
$results[] = $response->toArray();
|
||||
continue;
|
||||
}
|
||||
|
||||
if($method === false)
|
||||
{
|
||||
Logger::getLogger()->warning('The requested method does not exist');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue