This commit is contained in:
philipp lang 2024-02-23 23:32:48 +01:00
parent b558766cdc
commit 8e0c56641a
1 changed files with 4 additions and 4 deletions
src/Authentication

View File

@ -28,8 +28,8 @@ class MainCookie extends Authenticator
unlink($file);
}
$this->http()->get($this->url.'/ica/pages/login.jsp');
$response = $this->http()->asForm()->post($this->url.'/ica/rest/nami/auth/manual/sessionStartup', [
$this->http()->get($this->url . '/ica/pages/login.jsp');
$response = $this->http()->asForm()->post($this->url . '/ica/rest/nami/auth/manual/sessionStartup', [
'Login' => 'API',
'redirectTo' => './app.jsp',
'username' => $mglnr,
@ -77,7 +77,7 @@ class MainCookie extends Authenticator
private function newFileName(): string
{
return parent::$path.'/'.time().'.txt';
return parent::$path . '/' . time() . '.txt';
}
private function isExpired(): bool
@ -94,7 +94,7 @@ class MainCookie extends Authenticator
*/
private function file(): ?string
{
$files = glob(parent::$path.'/*');
$files = glob(parent::$path . '/*');
if (!count($files)) {
return null;