Update authenticateMe.php

This commit is contained in:
tripathyr 2021-11-19 18:41:27 +05:30 committed by GitHub
parent 9c3dd69854
commit 6b438159b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,12 @@ $std->error = true;
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
// EXECUTE:
$result = curl_exec($curl);
if(!$result){die("Connection Failure");}
if(!$result){
$std->message[] = "Authentication Service is not working ";
$std->error = true;
echo json_encode($std);
return false;
}
curl_close($curl);
return $result;
}
@ -115,3 +120,6 @@ $std->error = true;
echo json_encode($std);
return false;
}