Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Accidentily deleted all administrators


Go to End


3 Posts   1383 Views

Avatar
joshy

Community Member, 57 Posts

19 March 2009 at 12:55pm

Hi guys,

I am very new to SilverStripe (but loving it) and, when playing about, I managed to delete myself (the only admin) as a user. I now cannot login to the CMS.

Although only playing about, I have made some changes to the database that I wouldn't want to lose if I had to start again (page formatting mainly).

I have searched the forums but not found anything useful. I have also tried to add a new admin through MySQL but was not successful.

Is there any way to add an administrator through the database or otherwise?

On another note: having a feature to stop the last admin deleting themselves seems sensible.

Cheers,
Josh

Avatar
Ben Gribaudo

Community Member, 181 Posts

20 March 2009 at 2:14am

Hi Josh,

Does http://silverstripe.org/general-questions/show/251636 help -- particularly the part about using Security::setDefaultAdmin()?

Ben

Avatar
joshy

Community Member, 57 Posts

20 March 2009 at 2:21am

Yes, that's perfect, thanks!

Now to actually work out how to do things. This will be fun :D