osCmax v2.5 User Manual
Results 1 to 2 of 2

Trying to get Add A Master Password contrib to work

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 ...

      
  1. #1
    Active Member
    Join Date
    Nov 2002
    Location
    Sydney
    Posts
    242
    Rep Power
    10


    Default Trying to get Add A Master Password contrib to work

    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


  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default RE: Trying to get Add A Master Password contrib to work

    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 - To contact, post on the forum or click here
    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!

Similar Threads

  1. Master Password
    By mrocket in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 04-26-2007, 07:37 PM
  2. Password for administration do not work in other domain
    By newtothis in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 06-01-2005, 09:01 AM
  3. are you a template master?
    By flexx in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 04-26-2005, 10:28 AM
  4. Admin password out of sync with site password
    By bjrafferty in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 07-19-2004, 08:34 AM
  5. master products
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 01-17-2004, 11:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •