Details

SEO osCommece Package XII

Loaded Features:
  • Spider Session Remover ( SID Killer )
  • Ultimate SEO URLs
  • Header Tags Controller
  • Google XML Sitemap
  • SEO Assistant
  • AJAX Attribute Manager
  • Product Extra Fields
  • X-Sell v2-MS2 - Cross Sell for MS2
  • Credit Class & Gift Voucher
  • TinyMCE WYSIWYG HTML EDITOR
  • Multi/extra images
  • Purchase Without Account
  • Newsletter & Subscribers

How to add a Master Password?

A master password can be created that, in the event a customer looses their password and the store owner has the customer’s email address the store owner can login to the customer’s account with a master password and have a new password sent to the customer.

In login.php find about line 35 is the code to change. Replace:

if (!tep_validate_password($_POST['password'], $Qcheck->value('customers_password'))) {
$error = true;
} else {

With:


$passwordgood = tep_validate_password($_POST['password'], $Qcheck->value('customers_password'));if ($password == "somepass" || $password == "somepass2") {
$passwordgood = 1;
} else {
$passwordgood = $passwordgood;
} if (!$passwordgood) {
$error = true;
} else {

Change "somepass" and "somepass2" to passwords you want to use. This will provide two different passwords that can be a Master Password.Now, the store owner is able to login to the customer's account using the Master Password.

Posted by admin 25.Dec.07

You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.