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
Admin Account Deleted
Re: Admin Account Deleted
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!
You might want to make a login for your friend which belongs to editor group
hope this helps!
Re: Admin Account Deleted
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
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
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.

