mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-13 20:06:57 +01:00
* [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:
@@ -45,9 +45,13 @@ final class ConfigMailController extends SimpleControllerBase
|
||||
|
||||
/**
|
||||
* saveAction
|
||||
*
|
||||
* @throws \SP\Core\Exceptions\SPException
|
||||
*/
|
||||
public function saveAction()
|
||||
{
|
||||
$this->checkSecurityToken($this->previousSk, $this->request);
|
||||
|
||||
$eventMessage = EventMessage::factory();
|
||||
$configData = $this->config->getConfigData();
|
||||
|
||||
@@ -109,9 +113,13 @@ final class ConfigMailController extends SimpleControllerBase
|
||||
|
||||
/**
|
||||
* checkAction
|
||||
*
|
||||
* @throws \SP\Core\Exceptions\SPException
|
||||
*/
|
||||
public function checkAction()
|
||||
{
|
||||
$this->checkSecurityToken($this->previousSk, $this->request);
|
||||
|
||||
$mailParams = new MailParams();
|
||||
$mailParams->server = $this->request->analyzeString('mail_server');
|
||||
$mailParams->port = $this->request->analyzeInt('mail_port', 25);
|
||||
|
||||
Reference in New Issue
Block a user