Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2006
    Location
    St. Louis area
    Posts
    208
    Plugin Contributions
    0

    Default Turn off password

    I wish to turn off the need for a password to be entered to log in.

    I have a specific need for this on one site. There is no payment information being sent or saved.

    How do I turn off the password requirement?

    Thanks,

    Scott

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Turn off password

    Um .... the password also protects the customer's personal information.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Mar 2006
    Location
    St. Louis area
    Posts
    208
    Plugin Contributions
    0

    Default Re: Turn off password

    I just imported 1,281 customers from a Miva database. I have no passwords for them.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Turn off password

    If you simply want to allow customers to log in using their blank password, you could start by altering the password_funcs.php function file:
    Code:
      function zen_validate_password($plain, $encrypted) {
        if (zen_not_null($plain) && zen_not_null($encrypted)) {
    // split apart the hash / salt
          $stack = explode(':', $encrypted);
    
          if (sizeof($stack) != 2) return false;
    
          if (md5($stack[1] . $plain) == $stack[0]) {
            return true;
          }
        } elseif ($plain =='' && $encrypted == '') {
          return true;
        }
    
        return false;
      }
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Mar 2006
    Location
    St. Louis area
    Posts
    208
    Plugin Contributions
    0

    Default Re: Turn off password

    I was able to get the passwords.

    Thanks for your help.

  6. #6
    Join Date
    Mar 2006
    Location
    St. Louis area
    Posts
    208
    Plugin Contributions
    0

    Default Re: Turn off password

    I have another site that the owner does not want a password. He only wants the email for login.

    Changing the code to this did not work

    Code:
     function zen_validate_password($plain, $encrypted) {
        if (zen_not_null($plain) && zen_not_null($encrypted)) {
    // split apart the hash / salt
          $stack = explode(':', $encrypted);
    
          if (sizeof($stack) != 2) return false;
    
          if (md5($stack[1] . $plain) == $stack[0]) {
            return true;
          }
        } elseif ($plain =='' && $encrypted == '') {
          return true;
        }
    
        return false;
      }

  7. #7
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Turn off password

    they plan on storing users information based on a single login credential ( a public one at that )

    you did explain how they are setting themselves up right?
    Zen cart PCI compliant Hosting

  8. #8
    Join Date
    Mar 2006
    Location
    St. Louis area
    Posts
    208
    Plugin Contributions
    0

    Default Re: Turn off password

    Yes I did.

 

 

Similar Threads

  1. Turn off customer notifications doesnt turn them off?
    By deanparkr in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Dec 2008, 04:40 PM
  2. Categories-tab menu On/Off (it wont turn off!)
    By craigpowell in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 Sep 2008, 09:15 PM
  3. Add To Cart: how can I turn off the text *Mixed OFF
    By rstevenson in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Apr 2007, 06:51 AM
  4. Turn off password encryption
    By MunchSoft in forum General Questions
    Replies: 3
    Last Post: 5 Dec 2006, 07:49 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