diff --git a/vendor/Sookon/User/Account.php b/vendor/Sookon/User/Account.php index 0b53a003..7eb6f0d3 100644 --- a/vendor/Sookon/User/Account.php +++ b/vendor/Sookon/User/Account.php @@ -314,10 +314,11 @@ class Account implements EventManagerAwareInterface return array('error'=>"处理中出现错误,请重试",'place'=>'email'); } - $mail_template = "forgotpassword"; + $mail_template = "users-changepassword"; $mail_data = array( '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']}"; $this->db->exec($sql); - $mail_template = "getpassworded"; + $mail_template = "users-password-changed"; $mail_data = array( 'name'=>$row['realname'], + 'site' => $this->config->site_title ); $mail = new Mail(); $mail->loadTemplate($mail_template,$mail_data);