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.

General Questions /

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

I've locked myself out of SS


Reply


4 Posts   1469 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, 5513 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.