Oops, fixed a typo in: Add the ability to supply a default "from" email address for the "forgot password" feature, instead of using the same address as for the "to".

SVN:2.0.2[3220]
This commit is contained in:
Denis Flaven
2014-06-18 15:58:54 +00:00
parent 3fb7701015
commit 72cc38aa4b

View File

@@ -245,7 +245,7 @@ class LoginWebPage extends NiceWebPage
{
$sFrom = $sTo;
}
$oEmail->SetRecipientFrom($sTo);
$oEmail->SetRecipientFrom($sFrom);
$oEmail->SetSubject(Dict::S('UI:ResetPwd-EmailSubject'));
$sResetUrl = utils::GetAbsoluteUrlAppRoot().'pages/UI.php?loginop=reset_pwd&auth_user='.urlencode($oUser->Get('login')).'&token='.urlencode($sToken);
$oEmail->SetBody(Dict::Format('UI:ResetPwd-EmailBody', $sResetUrl));