public function validate(Vanilla\Request $request, Vanilla\User $user = null, Vanilla\Config $config = null) { if ($request->getClientID() !== $config->getClientID()) { $clientID = $request->getClientID(); $clientResponse = new Response\InvalidClientID($request); $clientResponse->setClientID($clientID); return $clientResponse; } }
public function validate(Vanilla\Request $request, Vanilla\User $user = null, Vanilla\Config $config = null) { if (empty($request->getClientID())) { return new Response\MissingClientID($request); } }