security/acme-client: Remove sessionClose()

This commit is contained in:
Monviech
2025-01-10 10:22:26 +01:00
committed by Franco Fichtner
parent 659b29eff5
commit 586f637975
5 changed files with 0 additions and 13 deletions
@@ -48,7 +48,6 @@ class AccountsController extends ApiMutableModelControllerBase
public function getAction($uuid = null)
{
$this->sessionClose();
return $this->getBase('account', 'accounts.account', $uuid);
}
@@ -46,7 +46,6 @@ class ActionsController extends ApiMutableModelControllerBase
public function getAction($uuid = null)
{
$this->sessionClose();
return $this->getBase('action', 'actions.action', $uuid);
}
@@ -48,7 +48,6 @@ class CertificatesController extends ApiMutableModelControllerBase
public function getAction($uuid = null)
{
$this->sessionClose();
return $this->getBase('certificate', 'certificates.certificate', $uuid);
}
@@ -50,8 +50,6 @@ class ServiceController extends ApiControllerBase
public function startAction()
{
if ($this->request->isPost()) {
// close session for long running action
$this->sessionClose();
$backend = new Backend();
$response = $backend->configdRun("acmeclient http-start");
return array("response" => $response);
@@ -67,8 +65,6 @@ class ServiceController extends ApiControllerBase
public function stopAction()
{
if ($this->request->isPost()) {
// close session for long running action
$this->sessionClose();
$backend = new Backend();
$response = $backend->configdRun("acmeclient http-stop");
return array("response" => $response);
@@ -84,8 +80,6 @@ class ServiceController extends ApiControllerBase
public function restartAction()
{
if ($this->request->isPost()) {
// close session for long running action
$this->sessionClose();
$backend = new Backend();
$response = $backend->configdRun("acmeclient http-restart");
return array("response" => $response);
@@ -128,9 +122,6 @@ class ServiceController extends ApiControllerBase
public function reconfigureAction()
{
if ($this->request->isPost()) {
// close session for long running action
$this->sessionClose();
$force_restart = false;
$mdlAcme = new AcmeClient();
@@ -47,7 +47,6 @@ class ValidationsController extends ApiMutableModelControllerBase
public function getAction($uuid = null)
{
$this->sessionClose();
return $this->getBase('validation', 'validations.validation', $uuid);
}