Jump to:

22976 Posts in 11493 Topics by 2824 members

General Questions

SilverStripe Forums » General Questions » I've locked myself out of SS

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: 1355 Views
  • D.K.
    Avatar
    Community Member
    20 Posts

    I've locked myself out of SS Link to this post

    I was changing my profile on the forum of my SS install. I changed the e-mail, and now if I try to log into SS with either the new e-mail, or the old e-mail, it says that the e-mail or password is incorrect. How can I recreate the admin user?

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: I've locked myself out of SS Link to this post

    You can hard code a admin member for your site by adding the following lines to your mysite/_config.php

    Security::setDefaultAdmin('admin', 'somepassword');

    That will enable you to login

  • D.K.
    Avatar
    Community Member
    20 Posts

    Re: I've locked myself out of SS Link to this post

    Thanks! I've logged in and recreated the admin user.

  • Spacemonkey
    Avatar
    Community Member
    5 Posts

    Re: I've locked myself out of SS Link to this post

    lol, i just did this myself, it's embarrassing, like locking yourself out of your car.

    I went into the database and changed permission groups there, but the above way seams much better.

    1355 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.