瀏覽代碼

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".

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3219 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 11 年之前
父節點
當前提交
9906cd8fb4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/loginwebpage.class.inc.php

+ 1 - 1
application/loginwebpage.class.inc.php

@@ -249,7 +249,7 @@ class LoginWebPage extends NiceWebPage
 			{
 			{
 				$sFrom = $sTo;
 				$sFrom = $sTo;
 			}
 			}
-			$oEmail->SetRecipientFrom($sTo);
+			$oEmail->SetRecipientFrom($sFrom);
 			$oEmail->SetSubject(Dict::S('UI:ResetPwd-EmailSubject'));
 			$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);
 			$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));
 			$oEmail->SetBody(Dict::Format('UI:ResetPwd-EmailBody', $sResetUrl));