Beispiel #1
0
 public function passLink($email)
 {
     $db = $this->getAdapter();
     $sql = "SELECT c.`email`,c.`pass_link` FROM `ldc_customer` AS c WHERE c.`email`='" . "{$email}" . "' LIMIT 1";
     $row = $db->fetchRow($sql);
     if ($row) {
         $rand = rand();
         $arr = array('pass_link' => md5($rand));
         $this->_name = "ldc_customer";
         $where = $db->quoteInto("email=?", $email);
         $this->update($arr, $where);
         $result = $db->fetchRow($sql);
         $db_mail = new Application_Model_DbTable_DbSendEmail();
         $db_mail->resetPassEmail($result);
     }
 }