Help for this page

Select Code to Download


  1. or download this
    ....
    if (tep_validate_password($password_current, $check_customer['customer
    +s_password'])) {
            tep_db_query("update " . TABLE_CUSTOMERS . " set customers_pas
    +sword = '" . tep_encrypt_password($password_new) . "' where customers
    +_id = '" . (int)$customer_id . "'");
    ....
    
  2. or download this
    ////
    // This function makes a new password from a plain text password. 
    ...
    
        return $password;
      }
    
  3. or download this
    function tep_validate_password($plain, $encrypted) {
        if (tep_not_null($plain) && tep_not_null($encrypted)) {
    // split apart the hash / salt
    ...
     
        return false;
      }