From d9de58abdf3c35a712fa4a02afa13a4d24ec8316 Mon Sep 17 00:00:00 2001 From: Miguel Nogueira Date: Fri, 8 Jun 2018 14:46:18 +0000 Subject: [PATCH] Reinsert keyvalidate --- source/defs/Hookmanager/Hookmanager.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/source/defs/Hookmanager/Hookmanager.php b/source/defs/Hookmanager/Hookmanager.php index 0cd14f1..cafb044 100644 --- a/source/defs/Hookmanager/Hookmanager.php +++ b/source/defs/Hookmanager/Hookmanager.php @@ -58,6 +58,19 @@ class Hookmanager } + private function keyValidate($keyFromURI) + { + // FIXME: Theoretically, this method does not work. + // TODO: Devise a new way to validate keys without user ID + if($this->APITools->keysMatch($keyFromURI)) + { + return true; + } + else + { + return false; + } + } /** *