This commit is contained in:
Yuri Kuznetsov
2022-08-04 10:57:49 +03:00
parent 1299b20fe1
commit 157b2a60bb
+10 -1
View File
@@ -31,6 +31,7 @@ namespace Espo\Controllers;
use Espo\Core\Acl\Table;
use Espo\Core\Exceptions\BadRequest;
use Espo\Core\Exceptions\Error;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\Exceptions\NotFound;
@@ -69,6 +70,8 @@ class Email extends Record
/**
* @throws Forbidden
* @throws NotFound
* @throws Error
* @todo Move to service.
*/
public function postActionSendTestEmail(Request $request): bool
@@ -142,7 +145,7 @@ class Email extends Record
}
if (is_null($data->password)) {
$data->password = $this->getConfig()->get('smtpPassword');
$data->password = $this->config->get('smtpPassword');
}
}
}
@@ -152,6 +155,9 @@ class Email extends Record
return true;
}
/**
* @throws BadRequest
*/
public function postActionMarkAsRead(Request $request): bool
{
$data = $request->getParsedBody();
@@ -173,6 +179,9 @@ class Email extends Record
return true;
}
/**
* @throws BadRequest
*/
public function postActionMarkAsNotRead(Request $request): bool
{
$data = $request->getParsedBody();