diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 60ac50b..3bc0c1f 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -68,11 +68,15 @@ class LoginByNC extends Controller { ); $opts = [ - "http" => [ + "ssl"=> array( + "verify_peer"=>false, + "verify_peer_name"=>false, + ), + "http" => array( "method" => "POST", "header" => "", "content" => $postdata - ] + ) ]; $context = stream_context_create($opts); $file = file_get_contents($this->nclink.'/api/setlog/', false, $context); @@ -97,10 +101,14 @@ class UserChangedByNC extends Controller { # Trigger in Django that the User changed public function handle(UserChangedEvent $event): void { $opts = [ - "http" => [ + "http" => array( "method" => "GET", "header" => "" - ] + ), + "ssl"=> array( + "verify_peer"=>false, + "verify_peer_name"=>false, + ), ]; $context = stream_context_create($opts); $file = file_get_contents($this->nclink.'/api/uschanged/'.$this->session->getUser()->getUID().'/'.$this->request->getCookie('nc_session_id'), false, $context); @@ -126,10 +134,14 @@ class LogoutByNC extends Controller { # Logout the user! public function handle(BeforeUserLoggedOutEvent $event): void { $opts = [ - "http" => [ + "http" => array( "method" => "GET", "header" => "" - ] + ), + "ssl"=> array( + "verify_peer"=>false, + "verify_peer_name"=>false, + ), ]; $context = stream_context_create($opts); $file = file_get_contents($this->nclink.'/api/logout/'.$this->session->getUser()->getUID(), false, $context);