Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Tried to add Master Password now login is jacked


Guest

Recommended Posts

Can someone please help me?

 

I used the information provided in the Knowledge Base to add a master password, now my login page is getting this error:

 

Fatal error: Call to a member function on a non-object in /home/princest/public_html/osCommerce/catalog/login.php on line 35

 

I tried backing out and it didn't work. Please advise. PLEASE!!!!!

 

IT LOOKS LIKE THIS:

// Check that password is good

 

$passwordgood = tep_validate_password($_POST['password'], $Qcheck->value('customers_password'));

 

if ($password == "setpwdhere" || $password == "setpwdhere2") {

$passwordgood = 1;

} else {

$passwordgood = $passwordgood;

}

 

if (!$passwordgood) {

$error = true;

} else {

if (SESSION_RECREATE == 'True') {

tep_session_recreate();

}

Link to comment
Share on other sites

Can someone please help me?

 

I used the information provided in the Knowledge Base to add a master password, now my login page is getting this error:

 

Fatal error: Call to a member function on a non-object in /home/princest/public_html/osCommerce/catalog/login.php on line 35

 

I tried backing out and it didn't work. Please advise. PLEASE!!!!!

 

IT LOOKS LIKE THIS:

// Check that password is good

 

$passwordgood = tep_validate_password($_POST['password'], $Qcheck->value('customers_password'));

 

if ($password == "setpwdhere" || $password == "setpwdhere2") {

$passwordgood = 1;

} else {

$passwordgood = $passwordgood;

}

 

if (!$passwordgood) {

$error = true;

} else {

if (SESSION_RECREATE == 'True') {

tep_session_recreate();

}

 

Is this for your admin area ? If so ... i would recommend .htaccess over php scripts. Check with your webhost. You should be able to setup user access via telnet/putty to your admin directory.

Link to comment
Share on other sites

try changing this line

$passwordgood = tep_validate_password($_POST['password'], $Qcheck->value('customers_password'));

 

to this:

 

 

$passwordgood = tep_validate_password($password, $check_customer['customers_password']);

while (!succeed) {try()};

 

GMT -6:00

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...