Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

login.php problem


tiG

Recommended Posts

I'm getting this error

 

Fatal error: Call to undefined function: validate_password() in /home/me/public_html/catalog/login.php on line 49

 

 

that line says:

 

$pass_ok = validate_password($HTTP_POST_VARS['password'], $check_customer['customers_password']);

if ($pass_ok != true) {

 

don't know enough to know what to change.

Link to comment
Share on other sites

Problem is that the code posted is nothing to do with the code in login.php in osCommerce. The code for the password function in login.php is:

 

$error = false;
 if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process')) {
$email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);
$password = tep_db_prepare_input($HTTP_POST_VARS['password']);

 

and

 

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

 

Vger

Link to comment
Share on other sites

I put in the tep and that worked. Now when I log into test account, I get this on the next page

TEXT_GREETING_PERSONAL

 

I tried to take out the greetings, but apparently left something somewhere. What page will take that out??

 

tia

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...