mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-12-28 06:28:58 +00:00
Renamed Tokens class to APIClients class
This commit is contained in:
parent
63f6333bad
commit
97ef188167
@ -1,18 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* Tokens checker class
|
||||
* API Clients checker class
|
||||
*
|
||||
* @author Pierre HUBERT
|
||||
*/
|
||||
|
||||
class Tokens{
|
||||
class APIClients {
|
||||
|
||||
/**
|
||||
* Check request client 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']))
|
||||
return false; //No token specified
|
||||
|
Loading…
Reference in New Issue
Block a user