From f5aaec19bc3188ba191a657a2c96c31aab5bcf60 Mon Sep 17 00:00:00 2001 From: Juan Date: Mon, 24 Jan 2022 14:27:51 +0100 Subject: [PATCH] rout to /key --- b3-dev/api/api-php/index.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/b3-dev/api/api-php/index.php b/b3-dev/api/api-php/index.php index 651f4a4..0f62149 100644 --- a/b3-dev/api/api-php/index.php +++ b/b3-dev/api/api-php/index.php @@ -33,7 +33,15 @@ case "/key/" : if($vars['REQUEST_METHOD'] == "POST") { - + if(!empty($_POST['user']) && !empty($_POST['password'])) + { + + } + else + { + header('HTTP/1.1 403 Forbidden'); + echo json_encode( (object) array('error'=>'PLease provide a valid user and matching password') ); + } } else {