* [MOD] Use config cache file instead of storing it in PHP's session

* [MOD] Unit testing tweaks in order to renew config cache

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
This commit is contained in:
nuxsmin
2018-11-12 00:12:01 +01:00
parent 2f11c46244
commit 5a549532f6
31 changed files with 529 additions and 368 deletions

View File

@@ -137,7 +137,7 @@ abstract class ControllerBase
$this->view->assign('isDemo', $this->configData->isDemoEnabled());
$this->view->assign('themeUri', $this->view->getTheme()->getThemeUri());
$this->view->assign('configData', $this->configData);
$this->view->assign('sk', $loggedIn ? $this->session->generateSecurityKey() : '');
$this->view->assign('sk', $loggedIn ? $this->session->generateSecurityKey($this->configData->getPasswordSalt()) : '');
// Pass the action name to the template as a variable
$this->view->assign($this->actionName, true);
@@ -238,6 +238,7 @@ abstract class ControllerBase
$this->checkLoggedInSession(
$this->session,
$this->request,
$this->configData,
function ($redirect) {
$this->router->response()
->redirect($redirect)