From 231afc03379da86bc5a4cc4eab0ff79a196d7cea Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 9 Oct 2020 08:28:10 +0200 Subject: [PATCH] Minor - add logs --- plugin/zoom/endpoint.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugin/zoom/endpoint.php b/plugin/zoom/endpoint.php index ba38c2427a..f5266e1ded 100644 --- a/plugin/zoom/endpoint.php +++ b/plugin/zoom/endpoint.php @@ -11,16 +11,15 @@ use Symfony\Component\HttpFoundation\Response; require_once __DIR__.'/config.php'; if ('POST' !== $_SERVER['REQUEST_METHOD']) { - http_response_code(Response::HTTP_NOT_FOUND); // Not found + http_response_code(Response::HTTP_NOT_FOUND); exit; } // @todo handle non-apache installations $authorizationHeaderValue = apache_request_headers()['Authorization']; - - if (api_get_plugin_setting('zoom', 'verificationToken') !== $authorizationHeaderValue) { + error_log('verificationToken not valid, please check your zoom configuration'); http_response_code(Response::HTTP_UNAUTHORIZED); exit; } @@ -141,8 +140,6 @@ switch ($objectType) { $meeting->addActivity($activity); $em->persist($meeting); $em->flush(); - //error_log(sprintf('Event "%s" on %s was unhandled: %s', $action, $objectType, $body)); - //http_response_code(501); // Not Implemented break; } break;