Updated UserloginController.php
This commit is contained in:
parent
50b0179f2c
commit
7aa090fb08
@ -28,7 +28,7 @@ class UserloginController extends Controller
|
|||||||
$check_user_url = 'auth/auth_user.php';
|
$check_user_url = 'auth/auth_user.php';
|
||||||
$data = ['user' => $request->username, 'pass' => $request->password, 'api_token' => env('LUPMISAPIKEY')];
|
$data = ['user' => $request->username, 'pass' => $request->password, 'api_token' => env('LUPMISAPIKEY')];
|
||||||
$check_user = ApiCalls::CurlPost(json_encode($data), $check_user_url);
|
$check_user = ApiCalls::CurlPost(json_encode($data), $check_user_url);
|
||||||
|
\Log::info($check_user);
|
||||||
if($check_user == false){
|
if($check_user == false){
|
||||||
return redirect("user-login")->withErrors(array("System not available at the moment. Try again later!"))->withInput();
|
return redirect("user-login")->withErrors(array("System not available at the moment. Try again later!"))->withInput();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user