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!
Comments 7
you rule!
Exactly what I was looking for. Great, thanks!
Thanks, bro! You rock!
Almost a year later, and you STILL rule! Thanks for this.
Wow, thanks! I had the admin login, but was looking for the database user/pass and found them in the same file thanks to you.
Thanks, still works.
Author
Whoa … thanks Callum! 🙂