This is a discussion on Trying to get Add A Master Password contrib to work within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hi, So we can easily access a customers account if they lose or forget their password or we have to ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi, So we can easily access a customers account if they lose or forget their password or we have to correct their account, we have found this contrib called Add a Master Password Last Update: 23rd July, 2005 Article ID: 68 It says this.. 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 == "putpasswordhere" || $password == "putanotherhere") { $passwordgood = 1; } else { $passwordgood = $passwordgood; } if (!$passwordgood) { $error = true; } else { We did this but get this when we try to Logon with a customers email address and the new passwords we have inserted at Login. Fatal error: Call to a member function value() on a non-object in /home/starreco/public_html/catalog/login.php on line 35 This is Line 35 $passwordgood = tep_validate_password($_POST['password'], $Qcheck->value('customers_password')); Thanks.. Oz |
| Sponsored Links | ||
| ||
|
#2
| ||||
| ||||
| First of all - MAX has MANY added lines of code so LINE number do not translate very well. Line 35 is the WRONG line in MAX. About line 59 is what you want. I had this installed at one site and worked just fine. make sure you change the "putpasswordhere" and "putanotherhere".
__________________ JPF - osCMax Fourm Moderator Try out our osCMax at: Live Catalog Demo Limited access Admin: Live Admin Demo Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped! |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Master Password | mrocket | osCommerce 2.2 Modification Help | 4 | 04-26-2007 08:37 PM |
| Password for administration do not work in other domain | newtothis | osCMax v1.7 Discussion | 2 | 06-01-2005 10:01 AM |
| are you a template master? | flexx | osCommerce 2.2 Modification Help | 3 | 04-26-2005 11:28 AM |
| Admin password out of sync with site password | bjrafferty | osCMax v1.7 Discussion | 3 | 07-19-2004 09:34 AM |
| master products | Anonymous | osCMax v1.7 Discussion | 1 | 01-17-2004 12:50 PM |