From 40e94f40865c4db7d6180243211960d2debec8b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 5 May 2021 15:03:51 +0200 Subject: [PATCH] Set explicit Message-ID in EmailMultifactorMethod::sendEmail() --- .../user/multifactor/EmailMultifactorMethod.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wcfsetup/install/files/lib/system/user/multifactor/EmailMultifactorMethod.class.php b/wcfsetup/install/files/lib/system/user/multifactor/EmailMultifactorMethod.class.php index f40b57bf6f..cde537e50c 100644 --- a/wcfsetup/install/files/lib/system/user/multifactor/EmailMultifactorMethod.class.php +++ b/wcfsetup/install/files/lib/system/user/multifactor/EmailMultifactorMethod.class.php @@ -110,6 +110,12 @@ final class EmailMultifactorMethod implements IMultifactorMethod { $email = new SimpleEmail(); $email->setRecipient($setup->getUser()); + $email->setMessageID(\sprintf( + 'com.woltlab.wcf.multifactor.email/%d/%d/%s', + $setup->getUser()->userID, + TIME_NOW, + \bin2hex(\random_bytes(8)) + )); $email->setSubject( WCF::getLanguage()->getDynamicVariable('wcf.user.security.multifactor.email.subject', [ -- 2.20.1