ver
This commit is contained in:
parent
65ab1e493a
commit
f0dc3c3f8b
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue