* [MOD] Improved template rendering

* [MOD] Improved variable errors on templates
* [MOD] Improved security token behavior
* [MOD] Code refactoring

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
This commit is contained in:
nuxsmin
2018-10-23 00:56:05 +02:00
parent e322563a66
commit e49526e594
147 changed files with 2613 additions and 1751 deletions

View File

@@ -49,9 +49,12 @@ final class ConfigImportController extends SimpleControllerBase
/**
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
* @throws \SP\Core\Exceptions\SPException
*/
public function importAction()
{
$this->checkSecurityToken($this->previousSk, $this->request);
if ($this->config->getConfigData()->isDemoEnabled()) {
return $this->returnJsonResponse(JsonResponse::JSON_WARNING, __u('Ey, esto es una DEMO!!'));
}
@@ -64,7 +67,6 @@ final class ConfigImportController extends SimpleControllerBase
$importParams->setCsvDelimiter($this->request->analyzeString('csvDelimiter'));
try {
$this->eventDispatcher->notifyEvent('run.import.start', new Event($this));
SessionContext::close();