diff --git a/docker-compose.yml b/docker-compose.yml index 9cfd8dc..a3c2818 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,7 +28,7 @@ services: MERCURE_PUBLISHER_JWT_KEY: '!ChangeMe!' MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeMe!' MERCURE_EXTRA_DIRECTIVES: | - cors_origins http://127.0.0.1:8000 + cors_origins https://127.0.0.1:8000 # Comment the following line to disable the development mode command: /usr/bin/caddy run -config /etc/caddy/Caddyfile.dev volumes: diff --git a/src/Service/LdapService.php b/src/Service/LdapService.php index bb2f3ca..8443ffa 100644 --- a/src/Service/LdapService.php +++ b/src/Service/LdapService.php @@ -49,7 +49,7 @@ class LdapService } public function isNine2Ldap() { - return ($this->connect()&&$this->appMasteridentity=="SQL"&&$this->synchro=="NINE2LDAP"&&$this->userwriter&&$this->baseorganisation&&$this->baseniveau01&&$this->baseniveau02&&$this->basegroup&&$this->baseuser); + return ($this->appMasteridentity=="SQL"&&$this->synchro=="NINE2LDAP"&&$this->userwriter&&$this->baseorganisation&&$this->baseniveau01&&$this->baseniveau02&&$this->basegroup&&$this->baseuser&&$this->connect()); } public function connect() {