|
|
|
@ -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
|
|
|
|
|
{
|
|
|
|
|