svg
This commit is contained in:
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user