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.

Archive /

Our old forums are still available as a read-only archive.

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

lost admin info


Go to End


3 Posts   2112 Views

Avatar
livvving

Community Member, 9 Posts

21 February 2008 at 7:02am

Edited: 21/02/2008 8:05am

I can't retrieve my admin details - I thought the install wasn't going to work, so I deleted the screengrab I made of the admin info - it won't recognize any of the email addresses I would have used either - is there any way to get my info?

I checked the mysql database and found that my email was set to admin, so I changed it to a real address and then reqested a reset to my password in the login panel - but it's not arrived yet - I can't change the password as I don't know how to create an SHA1 encrypted password. Is there an online creator available for them so I can create one and paste it into the mysql table?

Avatar
saimo

Community Member, 67 Posts

21 February 2008 at 8:17am

For me, the admin account creation didn't work. When the installation was done, I could log in using username 'admin' and password 'password'. If that doesn't work, you can add a default admin account that is only usable in devmode (http://doc.silverstripe.com/doku.php?id=devmode). To add an admin account and enable devmode, you would add these lines to _config.php:

Director::set_dev_servers(array(
'localhost',
'127.0.0.1',
'your_problem_site_name'
));

Security::setDefaultAdmin("username", "password");

Which should then be a valid login from which you can create/change other accounts. Note: I haven't tested this, but it's how I belive it to work.

Avatar
livvving

Community Member, 9 Posts

21 February 2008 at 8:36am

thank you!! Adding the lines to the config file worked perfectly - I got in using the username/password combo, then could create a new log in via the security menu.

I'm In!!