Forums / Customization from the Admin / Cannot reset admin password

Cannot reset admin password

Views: 6,608

Results 21 to 24 of 24
14 Feb 2012, 5:37 PM
#21
danbro0811 avatar

danbro0811

New Zenner

Join Date:
Feb 2012
Posts:
6
Plugin Contributions:
0

Cannot reset admin password

Thanks for all your help. Still not getting it. I'm into an tech area I really know nothing about. All of this would be unnecessary of course if Zen-Cart would just resend me my password when I click "Resend Password" on the Admin login page. Any idea why that's not happening? I am sure the Admin user name is correct.

14 Feb 2012, 11:25 PM
#22
drbyte avatar

drbyte

Sensei

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

Re: Cannot reset admin password

Why are you pasting "FROM/INTO prefix_admin" in the first place? That's definitely invalid syntax, and not part of the code suggested in the article.

.
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 Feb 2012, 12:10 AM
#23
danbro0811 avatar

danbro0811

New Zenner

Join Date:
Feb 2012
Posts:
6
Plugin Contributions:
0

Re: Cannot reset admin password

There's was a message below the code which said to add that, which I did only after both versions of the code failed to work. To recap, here are the four things I tried:

DELETE FROM admin WHERE admin_name = 'Admin';
INSERT INTO admin (admin_name, admin_email, admin_pass, admin_profile)
VALUES ('Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);

DELETE FROM admin WHERE admin_name = 'Admin';
INSERT INTO admin (admin_name, admin_email, admin_pass, admin_level)
VALUES ('Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);

FROM/INTO prefix_admin
DELETE FROM admin WHERE admin_name = 'Admin';
INSERT INTO admin (admin_name, admin_email, admin_pass, admin_profile)
VALUES ('Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);

FROM/INTO prefix_admin
DELETE FROM admin WHERE admin_name = 'Admin';
INSERT INTO admin (admin_name, admin_email, admin_pass, admin_level)
VALUES ('Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);

I gather that neither of the last two are correct. But what about the first two? Are they both wrong, too? If so what is missing? Again, I'm not a tech guy. So i would need to know exactly what I should be pasting in. Thanks.

16 Feb 2012, 12:51 AM
#24
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Cannot reset admin password

Log in to your database and look at the "admin" table. Does it just read "admin" or is there something appended to the front of it? If there is something that is appended to the front of it, this is a prefix and the same thing needs to be appended to the front of "admin" in the sql patch.

The best way to learn is to try stuff. But, back it up first.