Results 1 to 10 of 10
  1. #1
    Join Date
    Dec 2010
    Posts
    246
    Plugin Contributions
    0

    Default Manual password reset in mysql DB?

    Is there a way to manually reset a user password (via MySQL) rather than the built in ZC automatic reset? I have having a terrible time with a user who just can't seem to reset his password. We've gone through the cycle multiple times and it just won't work.

    I'd like to go straight into the MySQL DB and reset it there -- but I don't want to break anything.

    Can this be done? Any suggestions?

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    18,031
    Plugin Contributions
    1

    Default Re: Manual password reset in mysql DB?


  3. #3
    Join Date
    Dec 2010
    Posts
    246
    Plugin Contributions
    0

    Default Re: Manual password reset in mysql DB?

    Thanks Steve -- this seems to be for the admin password, which is OK. The problem I'm having is with individual customers who forget their passwords and then have a hard time resetting them via ZC.

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    18,031
    Plugin Contributions
    1

    Default Re: Manual password reset in mysql DB?

    Sorry, I misunderstood. There's no way I know of to reset a customer password using SQL, as the passwords are encrypted. What sort of problem are your customers having with the usual method ?

  5. #5
    Join Date
    Dec 2010
    Posts
    246
    Plugin Contributions
    0

    Default Re: Manual password reset in mysql DB?

    The scenario seems to be their password stops working (or they forget it). They request a new one and that doesn't work.

    I have asked them to send me the new password and it doesn't work for me either. But I don't really know if that's because they are copying the PW incorrectly or what.

    So, ideally, I'd like to reset the password here, test it and then send it to them -- that way I know it's correct.

    This seems to happen relatively frequently (say once a month at least).

    I have tried changing my own password -- no problem -- so I'm guessing it's user error.

    John

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    4,989
    Plugin Contributions
    6

    Default Re: Manual password reset in mysql DB?

    it just won't work
    What is it? The customer's keyboard, the e-mail with the new password, the customer's ability to cut and paste the new password, the system will not accept the password, is caps lock on when the customer tries to type in the code, etc? collective pronouns.

    You might try creating a user yourself and experiment with a version of the method used for replacing admin passwords. Theoretically, if you use just the code for the password and then use "admin" (without the quotes) for the password, it should work.

    NEW-- Was typing while you were typing.... You can also temporarily change their e-mail to yours and send a password that way.
    Last edited by dbltoe; 5 Jul 2012 at 08:53 PM.
    Did you read the posting tips?!?
    Things We've Done
    MOD: Scheduled Events

  7. #7
    Join Date
    Dec 2010
    Posts
    246
    Plugin Contributions
    0

    Default Re: Manual password reset in mysql DB?

    Quote Originally Posted by dbltoe View Post

    NEW-- Was typing while you were typing.... You can also temporarily change their e-mail to yours and send a password that way.
    I thought about doing that -- but then I figured that would change their username to my email. Can I change just the email address without affecting the username?

  8. #8
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    4,989
    Plugin Contributions
    6

    Default Re: Manual password reset in mysql DB?

    Don't think so. And, I should have mentioned that you would want to go down for maintenance while messing with a customer that might be shopping while you're messin'
    Did you read the posting tips?!?
    Things We've Done
    MOD: Scheduled Events

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

    Default Re: Manual password reset in mysql DB?

    More importantly: Can YOU reproduce the problem with your OWN customer account?

    Plus, how is the code on your site different from default Zen Cart code? This is important information, since the features you're saying are not working for you do in fact work fine out-of-the-box.
    .

    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.

  10. #10
    Join Date
    Aug 2012
    Posts
    7
    Plugin Contributions
    0

    Default Re: Manual password reset in mysql DB?

    Quote Originally Posted by jgold723 View Post
    I thought about doing that -- but then I figured that would change their username to my email. Can I change just the email address without affecting the username?
    I just had the the same issue with the reset email not arriving.
    What I had to do was create a customer with the password of password.
    After that into phpmyadmin to the customer file and copy and paste the hash into the other customers password location.

    Now they can login in and change it to whatever make them happy.

 

 

Similar Threads

  1. Password Reset
    By MW Promotions in forum Basic Configuration
    Replies: 5
    Last Post: 25 Dec 2010, 04:29 AM
  2. Customer reset password
    By cpaulson in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 30 Mar 2009, 12:29 AM
  3. Password not showing in Customer Password Reset Email
    By izuno in forum General Questions
    Replies: 2
    Last Post: 7 Oct 2008, 04:10 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
  •