Page 1 of 1
Admin Account Deleted
Posted: Sat May 12, 2007 1:48 am
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
Re: Admin Account Deleted
Posted: Sat May 12, 2007 5:51 am
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!
Re: Admin Account Deleted
Posted: Sat May 12, 2007 8:04 am
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
Re: Admin Account Deleted
Posted: Sun May 13, 2007 12:44 am
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.