This commit is contained in:
Yuri Kuznetsov
2021-03-31 20:04:27 +03:00
parent e2814141d4
commit 622b27448f
32 changed files with 359 additions and 89 deletions
@@ -56,9 +56,11 @@ class InboundEmail extends \Espo\Core\Controllers\Record
{
if (is_null($data->password)) {
$inboundEmail = $this->getEntityManager()->getEntity('InboundEmail', $data->id);
if (!$inboundEmail || !$inboundEmail->id) {
throw new Error();
}
$data->password = $this->getContainer()->get('crypt')->decrypt($inboundEmail->get('password'));
}