Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jan 2006
    Posts
    40
    Plugin Contributions
    0

    help question Using Encrypted Master Password to change cust passwords?

    Hi All,
    I have installed the Encrypted Master Password v1.1 mod for Zen v1.37 and I can log in to customers account ok with it.

    I have read on other posts that you can change the customer password but when I try to do this I get a message saying the original password is not the same as the one in the system.
    If I knew the original password I wouldn't need to change it

    Have I missed something that I need to hack?

    any advice welcome
    Bunster
    =====

    Nothing worth having ever comes easy, so don't give up!

  2. #2
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Using Encrypted Master Password to change cust passwords?

    Quote Originally Posted by Bunster View Post
    I have read on other posts that you can change the customer password
    Where have you read this?

  3. #3
    Join Date
    Jan 2006
    Posts
    40
    Plugin Contributions
    0

    Default Re: Using Encrypted Master Password to change cust passwords?

    in this thread where I errrr posted my reply to you by mistake.

    in this thread
    http://www.zen-cart.com/forum/showth...aster+Password
    Bunster
    =====

    Nothing worth having ever comes easy, so don't give up!

  4. #4
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    1,410
    Plugin Contributions
    1

    Default Re: Using Encrypted Master Password to change cust passwords?

    It doesn't seem to be possible with this mod. This is a big pain in the neck when customers need their password reset by us. The quickest way for me (but not the easiest) is to have a dummy account set up where you know the password. I then copy and past the encrpted password via phpMyadmin. Now I KNOW the new password. I then log into their account and reset the password. The whole fiasco takes 5 minutes minimum. I wish there was an easier way . . . . .

  5. #5
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    890
    Plugin Contributions
    4

    Default Re: Using Encrypted Master Password to change cust passwords?

    Hi,

    To allow you to use the Admin Password to change a customer's password once you have logged in as them using the Encrypted Master Password mod you'll need to do the following....

    1. You have to change includes\modules\pages\account_password\header_php.php so make a back up of it first. Overrides do not work with it so you'll have to change the core code.
    2. Open up includes\modules\pages\account_password\header_php.php and at about line 50 you will see...
    PHP Code:
    if (zen_validate_password($password_current$check_customer->fields['customers_password'])) { 
    3. Change it to read....
    PHP Code:
    // *** start Encrypted Master Password  ***
    $get_admin_query "SELECT admin_id, admin_pass
                        FROM " 
    TABLE_ADMIN "
                        WHERE admin_id = '1' "
    ;
    $check_administrator $db->Execute($get_admin_query);
        
    if (
    zen_validate_password($password_current$check_customer->fields['customers_password']) ||
        
    zen_validate_password($password_current$check_administrator->fields['admin_pass'])) { 
    4. Upload the changed file to your website.

    Once logged in as the customer you should now be able to change the password using the admin password as the current password.

    Hope that helps.

    Regards,
    Christian.

  6. #6
    Join Date
    Jan 2006
    Posts
    40
    Plugin Contributions
    0

    Default Re: Using Encrypted Master Password to change cust passwords?

    Outstanding!

    Thanks so much for passing on this snippet.

    much appreciated.
    Bunster
    =====

    Nothing worth having ever comes easy, so don't give up!

  7. #7
    Join Date
    May 2006
    Location
    Ohio
    Posts
    51
    Plugin Contributions
    0

    Default Re: Using Encrypted Master Password to change cust passwords?

    Argeed,

    TY SO SO MUCH for that snippet I ahve been trying to be able to do that since I GOT ZenCart cuz the password reset thing wasn't working for some reason so i was having to have customers open a whole NEW account and then having to transfer all their purchases...this worked perfectly though!!

    TY TY TY TY TY TY!!!

  8. #8
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: Using Encrypted Master Password to change cust passwords?

    Woody,
    Quote Originally Posted by Woodymon View Post
    Where have you read this?
    This is possible if you use my module.

  9. #9
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Using Encrypted Master Password to change cust passwords?

    Quote Originally Posted by a_berezin View Post
    Woody, This is possible if you use my module.
    Ahhhhhh... I have been using your excellent module Andrew ;-) But I did not know I could change customers password while logged into their account with the master password. I've been always doing this via phpmyadmin ;-). Thanks for the notice!

    Woody

  10. #10
    Join Date
    Apr 2007
    Posts
    15
    Plugin Contributions
    0

    Default Re: Using Encrypted Master Password to change cust passwords?

    Thanks for much for the help with the Encrypted Master Password. I installed the mod and then updated so it would let me change the customer password and it all worked just like you said. (I even backed up everything in case I messed up and didn't need it!)

    You guys are awesome.

    Jodi B
    ...who's customer just lost her password...and now it's fixed

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Encrypted Master Password support
    By stagebrace in forum Addon Admin Tools
    Replies: 209
    Last Post: 11 May 2023, 07:40 PM
  2. Master Password Encrypted mod support
    By Woodymon in forum All Other Contributions/Addons
    Replies: 62
    Last Post: 16 May 2011, 02:48 AM
  3. encrypted master password stopped working
    By stagebrace in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 23 Jan 2010, 06:48 AM
  4. Master Password vs Encrypted Master Password
    By srturner47 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 24 Apr 2008, 04:05 PM
  5. Encrypted master password probs
    By icklebits in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 5 Jun 2007, 06:00 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR