Merge branch '2.4' into develop

pull/7953/head
iglocska 2021-11-10 11:25:45 +01:00
commit f06edfd03d
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -1793,7 +1793,7 @@ class UsersController extends AppController
// Fetch user that contains also PGP or S/MIME keys for e-mail encryption
$userForSendMail = $this->User->getUserById($user_id);
$body = str_replace('\n', PHP_EOL, $body);
$result = $this->User->sendEmail($userForSendMail, $body, false, "[MISP " . Configure::read('MISP.org') . "] Email OTP");
$result = $this->User->sendEmail($userForSendMail, $body, false, "[" . Configure::read('MISP.org') . " MISP] Email OTP");
if ($result) {
$this->Flash->success(__("An email containing a OTP has been sent."));