Results 1 to 10 of 63

Hybrid View

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

    Default Re: Encrypted Master Password

    Quote Originally Posted by a_berezin View Post
    Sorry.
    v 1.1.1 14.02.2007 20:12
    - Bug fix in /includes/functions/password_funcs.php

    Woody,
    What version of PHP you use?
    The 1.37 shop with the reported issue runs on PHP Version: 5.1.6 (Zend: 2.1.0)

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

    Default Re: Encrypted Master Password

    Now it work?

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

    Default Re: Encrypted Master Password

    Quote Originally Posted by a_berezin View Post
    Now it work?
    Nope. Same issue.

    I downloaded your new v.1.1.1 and patched /includes/functions/password_funcs.php (all code between lines // BOF master_password and // EOF master_password).

    Woody

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

    Default Re: Encrypted Master Password

    Thanks Andrew for providing the post v1.1.1 patch below! The master password and IP checking now works on ZC 1.37 shop (running PHP 5.1.6).

    In the file /includes/functions/password_funcs.php
    replace same commented code block with the following code block:

    // BOF master_password
    if(zen_not_null(MASTER_PASSWORD) && $encrypted != MASTER_PASSWORD) {
    if(!zen_not_null(MASTER_PASSWORD_IP)) return zen_validate_password($plain, MASTER_PASSWORD);
    $master_password_ip = explode("|", preg_replace(array("@(\s)+\s@"), "|", trim(str_replace(array(";", ","), ' ', MASTER_PASSWORD_IP))));
    for($i=0,$n=sizeof($master_password_ip);$i<$n;$i++) {
    if(preg_match('/^' . $master_password_ip[$i] . '/', $_SERVER['REMOTE_ADDR'])) {
    return zen_validate_password($plain, MASTER_PASSWORD);
    break;
    }
    }
    }
    // EOF master_password

  5. #5
    Join Date
    Apr 2006
    Posts
    121
    Plugin Contributions
    0

    help question Re: Master Password Encrypted mod support

    I've downloaded 'Encrypted Master Password' from the download section and installed it in ZC1.3.7. Changed admin_id to 2 but it doesn't seem to work. Since this mod is rather basic there's nothing to indicate that I did something wrong.

    Trying to solve this I stumbled upon this thread but it confused me to see the code patches I didn't seem to have. Now I realize that there must be two mods with almost similar names; 'Encrypted Master Password' by Dennis Sayer and 'Master Password Encrypted' by Andrew Berezin.

    Couldn't find the 'Master Password Encrypted' mod in the download section but a link in one of the previous posts in this thread enabled me to download a copy. This mod however takes a little more work to incorporate into ZC.

    Is there anyone who can confirm the existence of the two similar mods and explain why one is better than the other? The 'Master Password Encrypted' mod seems to have more options and a admin interface but is it a more secure solution?

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

    Default Re: Master Password Encrypted mod support

    Quote Originally Posted by davale View Post
    Is there anyone who can confirm the existence of the two similar mods and explain why one is better than the other? The 'Master Password Encrypted' mod seems to have more options and a admin interface but is it a more secure solution?
    Andrew's mod supports IP access control (via admin). To download latest version visit link in Andrew's signature.

  7. #7
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Master Password Encrypted mod support

    Nice mod,

    But just a small delima...
    I have 3 administrators how do I change the following code?

    Encrypted Master Password allows the stores administrator to login to any
    account with there administrator password. The SLQ on line 60 can be
    modified to change which administrator can use Encrypted Master Password.
    This example changes the Encrypted Master Password to admin #2:
    WHERE admin_id = '2' ";

    I have admin #1,#3,#4 in for my administration panel. Is it possible to recode to have all three access the login rights for a customer.

    Mark,

 

 

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. v139h tweaking encrypted master password and cowoa
    By lankeeyankee in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 28 Feb 2012, 08:50 PM
  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

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