David Nash

Wordpress Guru Sydney

Reset Silverstripe admin password

Posted on October 6, 2009

It seems like every time I deploy a Silverstripe site I either lose the admin password, or it changes somehow. Then I have to search for ‘lost silverstripe password’ or something to work out how to reset it. This is basically for my own reference:

1. edit /mysite/_config.php
2. add Security::setDefaultAdmin('admin','password'); to the bottom
3. profit!

  1. tim says:

    you rule!

  2. Christian says:

    Exactly what I was looking for. Great, thanks!

  3. John says:

    Thanks, bro! You rock!

  4. joni says:

    Almost a year later, and you STILL rule! Thanks for this.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>