From 3a177c83a9d53fca7dc58f2df2be57ae7975af18 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Thu, 6 Mar 2014 07:33:14 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B4=A6=E6=88=B7=E9=82=AE?= =?UTF-8?q?=E4=BB=B6=E6=A8=A1=E6=9D=BF=E7=9A=84=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/Sookon/User/Account.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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);