From fc2ba866f20a8c521623b7e9f28b068d0a97b0f8 Mon Sep 17 00:00:00 2001 From: jf-cbd Date: Tue, 28 Nov 2023 10:06:36 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B06852=20-=20Missing=20configuration=20'fo?= =?UTF-8?q?rgot=5Fpassword=5Ffrom'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/loginwebpage.class.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/loginwebpage.class.inc.php b/application/loginwebpage.class.inc.php index 51eafd8d6f..f7cf9ce79b 100644 --- a/application/loginwebpage.class.inc.php +++ b/application/loginwebpage.class.inc.php @@ -248,6 +248,7 @@ class LoginWebPage extends NiceWebPage $oEmail = new Email(); $oEmail->SetRecipientTO($sTo); $sFrom = MetaModel::GetConfig()->Get('forgot_password_from'); + $sFrom = utils::IsNullOrEmptyString($sFrom) ? MetaModel::GetConfig()->Get('email_default_sender_address') : $sFrom; $oEmail->SetRecipientFrom($sFrom); $oEmail->SetSubject(Dict::S('UI:ResetPwd-EmailSubject', $oUser->Get('login'))); $sResetUrl = utils::GetAbsoluteUrlAppRoot().'pages/UI.php?loginop=reset_pwd&auth_user='.urlencode($oUser->Get('login')).'&token='.urlencode($sToken);