ver
This commit is contained in:
parent
65ab1e493a
commit
f0dc3c3f8b
|
|
@ -68,11 +68,15 @@ class LoginByNC extends Controller {
|
||||||
);
|
);
|
||||||
|
|
||||||
$opts = [
|
$opts = [
|
||||||
"http" => [
|
"ssl"=> array(
|
||||||
|
"verify_peer"=>false,
|
||||||
|
"verify_peer_name"=>false,
|
||||||
|
),
|
||||||
|
"http" => array(
|
||||||
"method" => "POST",
|
"method" => "POST",
|
||||||
"header" => "",
|
"header" => "",
|
||||||
"content" => $postdata
|
"content" => $postdata
|
||||||
]
|
)
|
||||||
];
|
];
|
||||||
$context = stream_context_create($opts);
|
$context = stream_context_create($opts);
|
||||||
$file = file_get_contents($this->nclink.'/api/setlog/', false, $context);
|
$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
|
# Trigger in Django that the User changed
|
||||||
public function handle(UserChangedEvent $event): void {
|
public function handle(UserChangedEvent $event): void {
|
||||||
$opts = [
|
$opts = [
|
||||||
"http" => [
|
"http" => array(
|
||||||
"method" => "GET",
|
"method" => "GET",
|
||||||
"header" => ""
|
"header" => ""
|
||||||
]
|
),
|
||||||
|
"ssl"=> array(
|
||||||
|
"verify_peer"=>false,
|
||||||
|
"verify_peer_name"=>false,
|
||||||
|
),
|
||||||
];
|
];
|
||||||
$context = stream_context_create($opts);
|
$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);
|
$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!
|
# Logout the user!
|
||||||
public function handle(BeforeUserLoggedOutEvent $event): void {
|
public function handle(BeforeUserLoggedOutEvent $event): void {
|
||||||
$opts = [
|
$opts = [
|
||||||
"http" => [
|
"http" => array(
|
||||||
"method" => "GET",
|
"method" => "GET",
|
||||||
"header" => ""
|
"header" => ""
|
||||||
]
|
),
|
||||||
|
"ssl"=> array(
|
||||||
|
"verify_peer"=>false,
|
||||||
|
"verify_peer_name"=>false,
|
||||||
|
),
|
||||||
];
|
];
|
||||||
$context = stream_context_create($opts);
|
$context = stream_context_create($opts);
|
||||||
$file = file_get_contents($this->nclink.'/api/logout/'.$this->session->getUser()->getUID(), false, $context);
|
$file = file_get_contents($this->nclink.'/api/logout/'.$this->session->getUser()->getUID(), false, $context);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue