修改账户邮件模板的名称

This commit is contained in:
Li Jianxuan 2014-03-06 07:33:14 +00:00
parent 48a0b4a98f
commit 3a177c83a9
1 changed files with 5 additions and 3 deletions

View File

@ -314,10 +314,11 @@ class Account implements EventManagerAwareInterface
return array('error'=>"处理中出现错误,请重试",'place'=>'email'); return array('error'=>"处理中出现错误,请重试",'place'=>'email');
} }
$mail_template = "forgotpassword"; $mail_template = "users-changepassword";
$mail_data = array( $mail_data = array(
'name'=>$row['realname'], 'name'=>$row['realname'],
'link'=> view::getHostLink().'/account/getpassword/?salt='.$salt 'link'=> view::getHostLink().'/account/getpassword/?salt='.$salt,
'site' => $this->config->site_title
); );
@ -363,9 +364,10 @@ class Account implements EventManagerAwareInterface
$sql = "UPDATE {$this->conf->table->member} SET {$this->conf->field->pwd}='".md5($data['password'])."',salt='' WHERE id={$row['id']}"; $sql = "UPDATE {$this->conf->table->member} SET {$this->conf->field->pwd}='".md5($data['password'])."',salt='' WHERE id={$row['id']}";
$this->db->exec($sql); $this->db->exec($sql);
$mail_template = "getpassworded"; $mail_template = "users-password-changed";
$mail_data = array( $mail_data = array(
'name'=>$row['realname'], 'name'=>$row['realname'],
'site' => $this->config->site_title
); );
$mail = new Mail(); $mail = new Mail();
$mail->loadTemplate($mail_template,$mail_data); $mail->loadTemplate($mail_template,$mail_data);