Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

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.

General Questions /

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

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

I've locked myself out of SS


Go to End


4 Posts   2882 Views

Avatar
D.K.

Community Member, 20 Posts

28 February 2009 at 7:10am

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?

Avatar
Willr

Forum Moderator, 5523 Posts

28 February 2009 at 2:28pm

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

Avatar
D.K.

Community Member, 20 Posts

28 February 2009 at 2:52pm

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

Avatar
Spacemonkey

Community Member, 5 Posts

6 March 2009 at 5:24pm

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.