This commit is contained in:
2020-01-08 15:28:50 +01:00
parent ec17681560
commit 8be086fe70
3 changed files with 10 additions and 2 deletions

View File

@ -131,7 +131,7 @@ class OnlyCommand extends Command
$this->writeln('== AUTHENTIFICATION =================================');
\Unirest\Request::verifyPeer(false);
\Unirest\Request::verifyHost(false);
\Unirest\Request::timeout(5);
\Unirest\Request::timeout(20);
$headers = ['Host' => $this->only_host, 'Accept' => 'application/json','Content-Type'=>'application/json','Retry-After'=>'5'];
$query = array('userName' => $this->only_user, 'password' => $this->only_password);
$body = \Unirest\Request\Body::json($query);

View File

@ -47,6 +47,9 @@ class onlyService
//==================================================================================================================================================================
public function syncUser(User $user) {
/* Pour l'instant ne sert plus en effet la synchro du côté only ne permet pas de modifier le mail d'une personne
Et une personne lié à une fiche ldap sur only on ne peut pas nom plus modifier nom et prénom
$this->mydebug("==SYNC ONLY USER==========================================================");
// Authentification à Only
@ -94,6 +97,7 @@ class onlyService
// Sinon création
// Ratacchement utilisateur group
*/
return true;
}