mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-12 03:16:54 +01:00
* [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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user