Compare commits
No commits in common. "e5a74cb3ec7c4991ce2c384b07fcb38d2170e195" and "7aa090fb085ff2b10b843fb826e2712f81ecaf24" have entirely different histories.
e5a74cb3ec
...
7aa090fb08
@ -28,7 +28,7 @@ class UserloginController extends Controller
|
||||
$check_user_url = 'auth/auth_user.php';
|
||||
$data = ['user' => $request->username, 'pass' => $request->password, 'api_token' => env('LUPMISAPIKEY')];
|
||||
$check_user = ApiCalls::CurlPost(json_encode($data), $check_user_url);
|
||||
dd($check_user);
|
||||
\Log::info($check_user);
|
||||
if($check_user == false){
|
||||
return redirect("user-login")->withErrors(array("System not available at the moment. Try again later!"))->withInput();
|
||||
}
|
||||
|
||||
@ -30,7 +30,6 @@ class ApiCalls{
|
||||
public static function CurlPost($data, $url){
|
||||
// $baseUrl = "https://api.lupmis4luspa.org/api/";
|
||||
$baseUrl = (env('APP_ENV') == 'local') ? env('API_BASE_URL_LOCAL') : "API_BASE_URL";
|
||||
dd($baseUrl);
|
||||
$post_url = $baseUrl . $url;
|
||||
$curl = curl_init();
|
||||
curl_setopt_array($curl, array(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user