Skip to content

Commit

Permalink
Remove log function from API
Browse files Browse the repository at this point in the history
Remove log function from API
  • Loading branch information
samerton authored May 30, 2018
1 parent 6d27661 commit f6da8fc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/Core/pages/api/v2/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,11 @@ private function handleRequest($action = null){
$this->validateUser();
break;

/*
case 'log':
$this->log();
break;
*/

default:
$this->throwError(3, $this->_language->get('api', 'invalid_api_method'));
Expand Down Expand Up @@ -848,10 +850,11 @@ private function validateUser(){
}
}

/*
private function log(){
//Ensures the API key is valid
if($this->_validated === true){
if(!isset($_POST), || empty($_POST), || !isset($_POST['action']) || !isset($_POST['uuid']) || !isset($_POST['userIP'])){
if(!isset($_POST) || empty($_POST) || !isset($_POST['action']) || !isset($_POST['uuid']) || !isset($_POST['userIP'])){
$this->throwError();
}
$user_query = $this->_db->get('users', array('uuid', '=', str_replace('-', '', $_POST['uuid'])));
Expand All @@ -873,4 +876,5 @@ private function log(){
}
}
}
}
*/
}

0 comments on commit f6da8fc

Please sign in to comment.