From eaeb114754fd4d31e62ff47ac01f7f182aa69c89 Mon Sep 17 00:00:00 2001 From: jf-cbd Date: Fri, 3 Nov 2023 17:30:27 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B06852=20-=20Use=20"email=5Fdefault=5Fsend?= =?UTF-8?q?er=5Faddress"=20when=20"forgot=5Fpassword=5Ffrom"=20config=20pa?= =?UTF-8?q?ram=20is=20empty?= 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 51eafd8d6..f7cf9ce79 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);