Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2009
    Posts
    4
    Plugin Contributions
    0

    Default generating customer passwords v1.3.0.1

    Zen cart 1.3.0.1 PHP 5.2.17 on Linex Mysql 5.0.51a

    We have a problem with users when they receive their password or request a new password using the "forgotten password" module.
    Some generated passwords contain 0 (zeros) and upper and lower case of the letter O. The users have a very difficult time telling the difference and usually end up getting an error message on login so they call the store for help.
    Is there a way to prevent the use of zero and the letter O in the generation of passwords?

    Thanks
    RL

  2. #2
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    244
    Plugin Contributions
    1

    Default Re: generating customer passwords

    better just use password containing characters only

    for that

    includes>>modules>>pages>>password_forgotten>>header.php

    look for

    $new_password = zen_create_random_value( (ENTRY_PASSWORD_MIN_LENGTH > 0 ? ENTRY_PASSWORD_MIN_LENGTH : 5) );

    change to

    $new_password = zen_create_random_value( (ENTRY_PASSWORD_MIN_LENGTH > 0 ? ENTRY_PASSWORD_MIN_LENGTH : 5), chars );

  3. #3
    Join Date
    Jan 2004
    Posts
    58,283
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: generating customer passwords

    Quote Originally Posted by rebecca_L View Post
    Zen cart 1.3.0.1 PHP 5.2.17 on Linex Mysql 5.0.51a

    We have a problem
    You REALLY need to upgrade ASAP, or you're going to have even more problems.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  4. #4
    Join Date
    Jan 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: generating customer passwords v1.3.0.1

    Thank you. I will give your edit suggestion a try. We're having a sale right now so I'll wait until it's over.
    As to the version upgrade..I know I should do it but I took over maintenance on this site from someone else. I may not be using the correct terminology but it doesn't look like there are any overrides. Some of the edits are in the original files. I had another Zen cart website several years ago and I remember copying any files I needed to change to another directory before I changed them. I'm worried about writing over files that I need.
    The only way I can think to get around this is to go through each file and if they have been customized, copy them to the appropriate location. Once I've got the system fixed then I can upgrade.
    Am I wrong thinking or over thinking this? I don't want to break the website with an upgrade.
    Thank you for your help so far.
    Rebecca

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    20,981
    Plugin Contributions
    25

    Default Re: generating customer passwords v1.3.0.1

    Yes, if the file edits are in the original locations instead of template override folders, you will need to compare and copy the appropriate files before upgrading. That is similar to the beginning of the regular upgrade process, identifying all of your customizations.

  6. #6
    Join Date
    Jan 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: generating customer passwords v1.3.0.1

    Thanks for all your help. I found an upgrade guide and will work my way through it. It doesn't seem difficult just time consuming. Oh well it has to be done sometime.

    Thanks again for your help.
    Rebecca

  7. #7
    Join Date
    Apr 2008
    Posts
    51
    Plugin Contributions
    0

    Default Re: generating customer passwords

    Quote Originally Posted by gaurav10feb View Post
    better just use password containing characters only

    for that

    includes>>modules>>pages>>password_forgotten>>header.php

    look for

    $new_password = zen_create_random_value( (ENTRY_PASSWORD_MIN_LENGTH > 0 ? ENTRY_PASSWORD_MIN_LENGTH : 5) );

    change to

    $new_password = zen_create_random_value( (ENTRY_PASSWORD_MIN_LENGTH > 0 ? ENTRY_PASSWORD_MIN_LENGTH : 5), chars );
    Hi, what would be the right code to make the new password numbers only, so instead of Chars something like nums?

  8. #8
    Join Date
    Jan 2004
    Posts
    58,283
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: generating customer passwords

    'digits'
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

 

 

Similar Threads

  1. Generating Customer Report by Product
    By kgeoffrey in forum General Questions
    Replies: 6
    Last Post: 31 Jan 2012, 12:00 PM
  2. Customer Passwords
    By kenny724 in forum General Questions
    Replies: 3
    Last Post: 25 Sep 2010, 11:33 AM
  3. Customer's Passwords
    By zidain in forum General Questions
    Replies: 5
    Last Post: 5 Jun 2010, 08:10 AM
  4. Customer passwords
    By petek in forum Customization from the Admin
    Replies: 7
    Last Post: 13 Dec 2008, 05:50 AM
  5. Customer Passwords
    By MunchSoft in forum General Questions
    Replies: 13
    Last Post: 14 Mar 2007, 01:15 AM

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
  •