ViroManchego Posted March 23, 2021 Report Share Posted March 23, 2021 // Authorize the API user $authorized = $this->authenticate(); // Ensure that the request is formatted correctly if (isset($this->get[0]) && isset($this->get[1])) { $this->model = ''; $fields = explode('.', $this->get[0]);execute ... ....... 3. // Only proceed if authorized if (!$authorized) { $this->response(self::UNAUTHORIZED); } should process request only if authorized // Authorize the API user $authorized = $this->authenticate(); if (!$authorized) { $this->response(self::UNAUTHORIZED); } // Ensure that the request is formatted correctly Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.