Admin Account Deleted

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
sssandfox

Admin Account Deleted

Post by sssandfox »

Okay guys I couldn’t find out anything about this problem so here goes. Basically I spent ages setting up CMS Made Simple for a website I was making for a friend. Anyway once I handed control over to my friend he managed to delete the admin account blocking us out of the CMS. I have logged into MyPHP Admin and can confirm that there are no user accounts.

How do I recreate an admin account without having to start all over again?

Thanks
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: Admin Account Deleted

Post by KO »

I do not know if this works for you but if you have working system somewhere you might want to try to copy admin data with phpMyAdmin and paste it to nonworking system. password is encrypted so copy the encrypted pw as well. I'm sure there is easier vay but this has saved me once.

You might want to make a login for your friend which belongs to editor group ;)

hope this helps!
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Admin Account Deleted

Post by tsw »

or you can say


INSERT INTO cms_users (user_id, username, password, admin_access, first_name, last_name, email, active, create_date, modified_date) VALUES ( 1, 'admin', MD5('admin'), 1, 'Admin', 'User', 'email@domain.tld', 1, NOW(), NOW());

if you can figure out how he did manage to delete the first account please let us know
sssandfox

Re: Admin Account Deleted

Post by sssandfox »

Thanks for the help guys! tsw your 2 second fixed worked like a charm thank you. Sadly I have no idea how he pulled it off, this time I will limit his access to keep him out of trouble.
Locked

Return to “CMSMS Core”