osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 08-30-2006, 11:34 PM
Active Member
 
Join Date: Nov 2002
Location: Sydney
Posts: 129
Thanks: 12
Thanked 0 Times in 0 Posts
Rep Power: 7
ozstar is on a distinguished road
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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 10-08-2006, 11:29 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
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
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 03:29 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax