Renamed Tokens class to APIClients class

This commit is contained in:
Pierre 2018-05-07 18:27:54 +02:00
parent 63f6333bad
commit 97ef188167
2 changed files with 4 additions and 4 deletions

View File

@ -1,18 +1,18 @@
<?php <?php
/** /**
* Tokens checker class * API Clients checker class
* *
* @author Pierre HUBERT * @author Pierre HUBERT
*/ */
class Tokens{ class APIClients {
/** /**
* Check request client tokens * Check request client tokens
* *
* @return bool Depends of the validity of the tokens * @return bool Depends of the validity of the tokens
*/ */
public function checkClientRequestTokens() : bool{ public function checkClientRequestTokens() : bool {
if(!isset($_POST['serviceName']) OR !isset($_POST['serviceToken'])) if(!isset($_POST['serviceName']) OR !isset($_POST['serviceToken']))
return false; //No token specified return false; //No token specified

View File

@ -47,7 +47,7 @@ define("DBprefix", $cs->config->get("dbprefix"));
unset($db); unset($db);
//Add token object //Add token object
$tokens = new Tokens(); $tokens = new APIClients();
$cs->register("tokens", $tokens); $cs->register("tokens", $tokens);
unset($tokens); unset($tokens);