Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2009
    Posts
    18
    Plugin Contributions
    0

    Default php help with Password Min_length code change

    In my older version I had edited the Forgotten_Password page so that new passwords were generated with characters only. I was following an example from http://www.zen-cart.com/wiki/index.php/Custom_passwords
    This worked well but when I upgraded to 1.5.3 I haven't been able to get the code to work with that change. I have tried several different syntax options but with each one I only get a blank page rather than the correct forgotten password page.
    This is the line of code that needs to be edited but I don't know where or how to place the 'chars' option.
    $new_password = zen_create_PADSS_password( (ENTRY_PASSWORD_MIN_LENGTH > 0 ? ENTRY_PASSWORD_MIN_LENGTH : 5) );

    My php knowledge is limited and I've been unable to find this situation on the internet.

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

    Default Re: php help with Password Min_length code change

    I have to first ask: why?

    The reason it's generating a PADSS-compliant password is for security.

    Is there something preventing people from using the numbers on their keyboard?
    What's your "minimum password length" set to in Admin->Configuration->Minimum Values?

    It's REALLY BAD to allow people to use passwords with only letters, especially if they're short!

    I realize you want it, but I'd really like to understand why.
    .

    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
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: php help with Password Min_length code change

    Quote Originally Posted by DrByte View Post
    It's REALLY BAD to allow people to use passwords with only letters, especially if they're short!
    So it's ok for tall people to use them? ;-)

    Cheers
    RodG

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

    Default Re: php help with Password Min_length code change

    Quote Originally Posted by RodG View Post
    So it's ok for tall people to use them? ;-)

    Cheers
    RodG
    OMG ... I have to confess, that made me laugh out loud!
    .

    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
    Jan 2009
    Posts
    18
    Plugin Contributions
    0

    Default Re: php help with Password Min_length code change

    Sorry I got delayed by another project and let this slip.
    The main reason we were using letters only is because most of our users have a lot and I mean a lot of trouble telling the difference between the letters and numbers. O and 0, 1 and l even b and 6 . Working with computers for almost 30 years I had never noticed the problem until I started on this site. It is amazing how computer challenged they are but surprising that they keep trying. Sometimes we'll get 3 or 4 forgotten password requests in a row from the same person. They couldn't get the one that was sent 20 seconds ago entered correctly so they ask for another one. IF they can't log in they get frustrated and go somewhere else to shop. Not good for business

  6. #6
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: php help with Password Min_length code change

    Quote Originally Posted by rebecca_L View Post
    Sorry I got delayed by another project and let this slip.
    The main reason we were using letters only is because most of our users have a lot and I mean a lot of trouble telling the difference between the letters and numbers. O and 0, 1 and l even b and 6 . Working with computers for almost 30 years I had never noticed the problem until I started on this site. It is amazing how computer challenged they are but surprising that they keep trying. Sometimes we'll get 3 or 4 forgotten password requests in a row from the same person. They couldn't get the one that was sent 20 seconds ago entered correctly so they ask for another one. IF they can't log in they get frustrated and go somewhere else to shop. Not good for business
    How sure are you that the 3 or 4 forgotten password attempts originated from the account owner directly and not some attempted hack? What's wrong with copy and paste or providing directions to do so?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v150 Help with Merging PHP Code
    By Johnnycopilot in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 16 Mar 2015, 07:30 PM
  2. v139h help with my php code
    By wilsonshen in forum General Questions
    Replies: 3
    Last Post: 13 Mar 2014, 04:41 AM
  3. Desperatley Need Help with PHP / MYSQL code
    By philip937 in forum General Questions
    Replies: 19
    Last Post: 7 Oct 2009, 06:47 PM
  4. Basic mysql/php code with Zen help?
    By laurenjj in forum General Questions
    Replies: 3
    Last Post: 29 May 2009, 01:54 AM

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