From: Tim Düsterhus Date: Wed, 5 May 2021 12:58:34 +0000 (+0200) Subject: Set explicit Message-ID in MultifactorManageForm::sendEmail() X-Git-Tag: 5.4.0_Alpha_2~51^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9c3e6490f6218f4cbc983de782f3c1113c8bb820;p=GitHub%2FWoltLab%2FWCF.git Set explicit Message-ID in MultifactorManageForm::sendEmail() --- diff --git a/wcfsetup/install/files/lib/form/MultifactorManageForm.class.php b/wcfsetup/install/files/lib/form/MultifactorManageForm.class.php index 53ff5b8058..bad8099ed6 100644 --- a/wcfsetup/install/files/lib/form/MultifactorManageForm.class.php +++ b/wcfsetup/install/files/lib/form/MultifactorManageForm.class.php @@ -252,6 +252,12 @@ class MultifactorManageForm extends AbstractFormBuilderForm { $email = new SimpleEmail(); $email->setRecipient(WCF::getUser()); + $email->setMessageID(\sprintf( + 'com.woltlab.wcf.multifactorSetup/%d/%d/%s', + WCF::getUser()->userID, + TIME_NOW, + \bin2hex(\random_bytes(8)) + )); $email->setSubject( WCF::getLanguage()->getDynamicVariable('wcf.user.security.multifactor.setupEmail.subject', [