Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

master password


rozesky

Recommended Posts

Hi want to set a master password so i can what a customer as orded if they leave shop before order as been logged the following this but did'nt work can anyone help dont know how to uload contribuations

 

find this in login.php

if (!tep_validate_password($_POST['password'], $Qcheck->value('customers_password'))) {

$error = true;

} else {

 

replace

 

With:

 

 

 

$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 {

Link to comment
Share on other sites

Hi want to set a master password so i can what a customer as orded if they leave shop before order as been logged the following this but did'nt work can anyone help dont know how to uload contribuations

 

find this in login.php

if (!tep_validate_password($_POST['password'], $Qcheck->value('customers_password'))) {

$error = true;

} else {

 

replace

 

With:

$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 {

That doesn't work. This does (with Register Globals enabled)

 

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

 

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

$passwordgood = 1;

} else {

$passwordgood = $passwordgood;

}

 

if (!$passwordgood) {

$error = true;

} else {

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

That doesn't work. This does (with Register Globals enabled)

 

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

 

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

$passwordgood = 1;

} else {

$passwordgood = $passwordgood;

}

 

if (!$passwordgood) {

$error = true;

} else {

HI thanks for the help as i'm new to this what are REGISTER GLOBALS ENABLED and how do i set them if it entails uploading them im stuck

cheers john

Link to comment
Share on other sites

HI thanks for the help as i'm new to this what are REGISTER GLOBALS ENABLED and how do i set them if it entails uploading them im stuck

cheers john

master password set thanks for the help

john

Link to comment
Share on other sites

Even easier way to set a master password (found in login.php):

 

// Check that password is good

if (!tep_validate_password($password, $check_customer['customers_password']) && $password != 'password1' && $password != 'password2') {

$error = true;

} else {

if (SESSION_RECREATE == 'True') {

tep_session_recreate();

}

.......

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...