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

Password for CMS


Go to End


2 Posts   1294 Views

Avatar
Joe Joe

Community Member, 9 Posts

18 January 2012 at 9:57am

I am trying to log-in to the CMS admin and I forgot my password. I've clicked the I've lost my password link in the login screen and have not received an e-mail with a link to change my password.

I came here and attempted to login and had to request a new password. I received the e-mail, changed my password, but it does not apply to logging into the CMS admin.

What do I do?

Thanks,

Joe

Avatar
Sticks

Community Member, 31 Posts

18 January 2012 at 11:19am

Adding this line to the mysite/_config.php file will let you set a username and password that will let you in to the CMS.

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

If you plan on leaving that line of code in there after you've got back into the CMS, then I of course recommend a much stronger password.