mirror of https://github.com/MISP/MISP
fix: [bug] Fixed e-mailing bug introduced during the refactoring
parent
cb900d7a1f
commit
0e1b058ac9
|
@ -788,7 +788,7 @@ class User extends AppModel
|
|||
}
|
||||
$replyToLog = '';
|
||||
if (!$failed) {
|
||||
$this->__finaliseAndSendEmail($replyToUser, $Email, $replyToLog, $user, $subject, $body);
|
||||
$result = $this->__finaliseAndSendEmail($replyToUser, $Email, $replyToLog, $user, $subject, $body);
|
||||
}
|
||||
$this->Log = ClassRegistry::init('Log');
|
||||
$this->Log->create();
|
||||
|
@ -840,7 +840,7 @@ class User extends AppModel
|
|||
$Email->emailFormat('text');
|
||||
$result = $Email->send($body);
|
||||
$Email->reset();
|
||||
return true;
|
||||
return $result;
|
||||
}
|
||||
|
||||
private function __encryptUsingGPG(&$Email, &$body, $subject, $user)
|
||||
|
|
Loading…
Reference in New Issue