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?
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.
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
Thanks! I've logged in and recreated the admin user.
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.