Forums / General Questions / Manual password reset in mysql DB?

Manual password reset in mysql DB?

Locked

Views: 1,026

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
5 Jul 2012, 3:32 PM
#1
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

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?

5 Jul 2012, 5:23 PM
#3
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

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.

5 Jul 2012, 5:57 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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 Jul 2012, 7:44 PM
#5
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

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

5 Jul 2012, 7:50 PM
#6
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,864
Plugin Contributions:
18

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? :censored: 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.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

5 Jul 2012, 7:59 PM
#7
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Re: Manual password reset in mysql DB?

dbltoe:

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?

5 Jul 2012, 8:03 PM
#8
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,864
Plugin Contributions:
18

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'

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

5 Jul 2012, 8:09 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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!
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.

16 Aug 2012, 9:45 PM
#10
rhs49010 avatar

rhs49010

New Zenner

Join Date:
Aug 2012
Posts:
7
Plugin Contributions:
0

Re: Manual password reset in mysql DB?

jgold723:

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.