Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PWA Contribution mixed with AutoLogin108


BeatToBeat

Recommended Posts

Alright, I just started getting into PHP, SQL, and the other vew things within the last month, so I'm still considered a "Newbie"...

 

I had my ../osCommerce/login.php file working fine when I replaced the origional with the one provided by PWA (since it wasn't a CHG file it was a replacement file) and everything worked fine... then last night I went to install the auto login which consists of CHG files --- upon getting to the Login.php page, I found that I couldnt' fine one of the lines where code was to be posted into... I left it out, and now please check the error and provide some assistasnce:

 

Fatal error: Call to undefined function: tep_validate_password() in /home/djatele/public_html/osCommerce/login.php on line 41

 

 

Here's someof the coding... Line 35 to 45...

 

   $check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'");
   if (!tep_db_num_rows($check_customer_query)) {
     $error = true;
   } else {
     $check_customer = tep_db_fetch_array($check_customer_query);
// Check that password is good
     if (!tep_validate_password($password, $check_customer['customers_password'])) {
       $error = true;
     } else {
       if (SESSION_RECREATE == 'True') {
         tep_session_recreate();

 

Anyhelp anyone can provide is greatly appreciated... I have a feeling I might

need to find an origional version of my LOGIN.PHP and then modify it for

PWA then AutoLogin as opposed to using PWA's LOGIN.PHP which seems to

take out certain code.

 

Thanks in advance, have a wonderful day. I look forward to your responses.

 

Robert

Link to comment
Share on other sites

Even in taking out (starting at "Line 41")...

 

if (!tep_validate_password($password, $check_customer['customers_password'])) {
       $error = true;
     } else {
       if (SESSION_RECREATE == 'True') {
         tep_session_recreate();
       }

 

... through "Line 46"...

 

I still had the same error upon retrying the login.

 

I'm desperate.

 

Robert Starkey

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...