use TwoFactorAuth via composer

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2018-12-19 14:12:42 +01:00
parent 28f24fda72
commit 4c4b2a6df3
29 changed files with 264 additions and 1130 deletions

View File

@@ -32,7 +32,7 @@ if (is_null($decoded_request)) {
try {
$request = \Froxlor\Api\FroxlorRPC::validateRequest($decoded_request);
// now actually do it
$cls = "\Froxlor\Api\Commands\\" . $request['command']['class'];
$cls = "\\Froxlor\\Api\\Commands\\" . $request['command']['class'];
$method = $request['command']['method'];
$apiObj = new $cls($decoded_request['header'], $request['params']);
// call the method with the params if any