contents error
This commit is contained in:
parent
d4e3712d13
commit
d7d7f24c36
|
|
@ -16,7 +16,6 @@ use OCP\AppFramework\Http\Events\BeforeTemplateRenderedEvent;
|
||||||
|
|
||||||
use OCP\Files\Events\Node\BeforeNodeDeletedEvent;
|
use OCP\Files\Events\Node\BeforeNodeDeletedEvent;
|
||||||
|
|
||||||
|
|
||||||
class Application extends App {
|
class Application extends App {
|
||||||
|
|
||||||
protected $AppName = 'Agency';
|
protected $AppName = 'Agency';
|
||||||
|
|
@ -79,13 +78,15 @@ class LoginByNC extends Controller {
|
||||||
|
|
||||||
protected $session;
|
protected $session;
|
||||||
protected $request;
|
protected $request;
|
||||||
|
protected $userStatusManager;
|
||||||
private $nclink = 'https://daprd1.digitale-agentur.com';
|
private $nclink = 'https://daprd1.digitale-agentur.com';
|
||||||
//private $nclink = 'http://host.docker.internal:8000';
|
//private $nclink = 'http://host.docker.internal:8000';
|
||||||
|
|
||||||
public function __construct(string $AppName, IRequest $request, IUserSession $session) {
|
public function __construct(string $AppName, IRequest $request, IUserSession $session, IUserStatusManager $userStatusManager) {
|
||||||
$this->request = $request;
|
$this->request = $request;
|
||||||
parent::__construct($AppName, $request);
|
parent::__construct($AppName, $request);
|
||||||
$this->session = $session;
|
$this->session = $session;
|
||||||
|
$this->userStatusManager = $userStatusManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function generateRandomString($length = 10) {
|
private function generateRandomString($length = 10) {
|
||||||
|
|
@ -114,10 +115,11 @@ class LoginByNC extends Controller {
|
||||||
),
|
),
|
||||||
"http" => array(
|
"http" => array(
|
||||||
"method" => "POST",
|
"method" => "POST",
|
||||||
"header" => "",
|
"header" => "Content-Type: application/x-www-form-urlencoded\r\n",
|
||||||
"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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue