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

Can't login. No permissions. Urgent help request


3 Posts   751 Views


8 April 2010 at 3:48am Community Member, 131 Posts

I just showed a customer the CMS and demonstrated the 'Security' section. As I clicked the permission levels I saw an 'server error' at the bottom and the next click logged me out.

Maybe I removed myself (Adminstrators group) the admin rights!? And now I can't login anymore.

Where can I change it in MySQL? Which table/field is responsible?

If someone can please help, that would be great! Thanks!


8 April 2010 at 4:00am Forum Moderator, 1796 Posts

I'd add this to mysite/_config.php...

Security::setDefaultAdmin('admin', 'admin');

...then login with that.


8 April 2010 at 4:12am Community Member, 131 Posts

Cool! Thanks a lot for your quick help!

That works :)