* [ADD] syspass.log file and configuration backup can now be downloaded from Information tab

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
This commit is contained in:
nuxsmin
2018-11-01 11:40:51 +01:00
parent e1f2f0b0f0
commit 68e5d80bee
2 changed files with 16 additions and 0 deletions

View File

@@ -179,6 +179,10 @@ final class ConfigGeneralController extends SimpleControllerBase
{
$this->checkSecurityToken($this->previousSk, $this->request);
if ($this->configData->isDemoEnabled()) {
return __('Ey, esto es una DEMO!!');
}
try {
SessionContext::close();
@@ -221,6 +225,10 @@ final class ConfigGeneralController extends SimpleControllerBase
{
$this->checkSecurityToken($this->previousSk, $this->request);
if ($this->configData->isDemoEnabled()) {
return __('Ey, esto es una DEMO!!');
}
try {
$this->eventDispatcher->notifyEvent('download.configBackupFile',
new Event($this, EventMessage::factory()