correctifs

This commit is contained in:
2022-08-25 19:25:45 +02:00
parent 953cee63eb
commit 9cf7ff655b
7 changed files with 442 additions and 528 deletions

View File

@ -237,13 +237,7 @@ class SecurityController extends AbstractController
"client_secret" => $this->getParameter("oauthClientsecret"),
];
$response=$this->apiservice->run("POST",$apiurl,$query);
return $this->render('Home/home.html.twig',[
"useheader"=>true,
"usemenu"=>true,
"usesidebar"=>false,
"maxsize"=>1000,
]);
if(!$response||$response->code!="200") return $this->logout($request);
$token=$response->body->access_token;
$request->getSession()->set("oauthToken",$token);

View File

@ -51,7 +51,6 @@ class ApiService
$response = \Unirest\Request::post($url,$header,$query);
}
catch (\Exception $e) {
die();
return false;
}
break;
@ -61,7 +60,6 @@ class ApiService
$response = @\Unirest\Request::get($url,$header,$query);
}
catch (\Exception $e) {
dump($e);
return false;
}
break;