Forums / Customization from the Admin / lost clients admin password - restarted through mysql - cant access any admin profile

lost clients admin password - restarted through mysql - cant access any admin profile

Locked

Started by poosk on 13 May 2008, 3:29 PM · Views: 5,620

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
13 May 2008, 3:29 PM
#1
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

lost clients admin password - restarted through mysql - cant access any admin profile

So I forget my clients master password which I only use.. admin was named masteradmin (I looked from sql). I cannot send passwords through email it is disabled. I ran the script

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);

which lets me in but I cannot see the menu so I think admin roles mod(or something similar) messes things up. I need this urgently so please please help. Im totally lost with this one.

13 May 2008, 3:33 PM
#2
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: lost clients admin password - restarted through mysql - cant access any admin profile

Im basically fired if I don't find out a way to fix this.. I tried this

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

which lets me in as masteradmin with pw admin BUT still no menu and
"Sorry, your security clearance does not allow you to access this resource."

13 May 2008, 3:39 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: lost clients admin password - restarted through mysql - cant access any admin profile

If you're using the admin profiles mod, you'll have to set up the security in the admin profiles tables manually.

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

13 May 2008, 3:49 PM
#4
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: lost clients admin password - restarted through mysql - cant access any admin profile

Im not really that handy with the mysql and wouldnt really want to make this issue even huger but do I need to reset the table? I don't have admin profiles table? theres admin_allowed_pages table though? How can I reset it? thanks Byte!

13 May 2008, 3:55 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: lost clients admin password - restarted through mysql - cant access any admin profile

You may have to study the admin profiles contribution documentation for more information.

I have to run off to a meeting, so can't help at this moment.

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

13 May 2008, 4:04 PM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: lost clients admin password - restarted through mysql - cant access any admin profile

Before trying to reset it (which you could do by re-running the installation SQL bundled with the Admin Profiles release package) which would be a complete reset, that would wipe out all settings for other users too, try this ...

Go into your admin table (e.g. via phpMyAdmin) and edit your admin_id to be "1".

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

13 May 2008, 4:06 PM
#7
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: lost clients admin password - restarted through mysql - cant access any admin profile

Thanks Kuroi. Glad that you found the thread. I was looking for your help already in the profiles thread :) So actually how I set admin id in to 1?

13 May 2008, 4:10 PM
#8
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: lost clients admin password - restarted through mysql - cant access any admin profile

I was nudged here. You can update it by editing the table contents in phpMyAdmin or similar. But maybe easier would be to just run the following SQL> update admin set admin_id=1 where admin_name="masteradmin";

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

13 May 2008, 4:11 PM
#9
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: lost clients admin password - restarted through mysql - cant access any admin profile

Unfortunately I need to go out too. But Let me know how that goes. I'll check-in when I return.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

13 May 2008, 4:25 PM
#10
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: lost clients admin password - restarted through mysql - cant access any admin profile

Thanks guys I figured it out and you cannot imagine how relieved I am! cheers!

for the others who're not so fluent with sql

https://www.zen-cart.com/tutorials/index.php?article=95

21 May 2008, 4:52 PM
#11
aallenlenth avatar

aallenlenth

New Zenner

Join Date:
Sep 2007
Location:
Texas
Posts:
34
Plugin Contributions:
0

Re: lost clients admin password - restarted through mysql - cant access any admin profile

This Is Awesome - Thanks For The Hash Code

Don't forget to donate now and then.
I make money because of this service;
So can you.

21 May 2008, 4:56 PM
#12
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: lost clients admin password - restarted through mysql - cant access any admin profile

Any time you need it, it's in the FAQ. Just search for "admin password"

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)