Jump to:

23367 Posts in 18143 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » Accidentily deleted all administrators

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

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

Page: 1
Go to End
Author Topic: 687 Views
  • joshy
    Avatar
    Community Member
    57 Posts

    Accidentily deleted all administrators Link to this post

    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

  • Ben Gribaudo
    Avatar
    Community Member
    181 Posts

    Re: Accidentily deleted all administrators Link to this post

    Hi Josh,

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

    Ben

  • joshy
    Avatar
    Community Member
    57 Posts

    Re: Accidentily deleted all administrators Link to this post

    Yes, that's perfect, thanks!

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

    687 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.