Skip to content

Commit

Permalink
Return Unauthorized if APIKey and UserID do not match
Browse files Browse the repository at this point in the history
  • Loading branch information
timlegge committed Oct 16, 2019
1 parent cff933d commit df0aaf5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/v1/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ function echoResponse( $response ) {
$response['error'] = true;
$response['message'] = _("Access Denied");
$response['errorcode'] = 401;
echoResponse($response );
$app->stop();

}
}

Expand Down

0 comments on commit df0aaf5

Please sign in to comment.