From 9c3e6490f6218f4cbc983de782f3c1113c8bb820 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 5 May 2021 14:58:34 +0200 Subject: [PATCH] Set explicit Message-ID in MultifactorManageForm::sendEmail() --- .../install/files/lib/form/MultifactorManageForm.class.php | 6 ++++++ 1 file changed, 6 insertions(+) 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', [ -- 2.20.1