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 recovery


Go to End


12 Posts   20882 Views

Avatar
twosoul

Community Member, 2 Posts

6 January 2009 at 10:15am

I recently installed silverstripe on one of my web servers and intend to use it as the backend for my company's redesigned website. I'm embarrassed to admit it, but I've now forgotten the password I used when I initially set it up. When I use the "Remember Password" form I don't receive the reset password email. I believe this is because I have yet to configure the email settings with the admin interface. Is there ANY other way to recover my password? It's SHA1 encrypted in the database (as it should be). Please let me know if you have any thoughts--I've shot myself in the foot here and will take any help I can get. Thanks.

-Mac

Avatar
Hamish

Community Member, 712 Posts

6 January 2009 at 10:37am

Quickest thing to do would probably be to manually overwrite your password in your database.

Just update the user row with the SHA1'ed password - you could use this tool to generate it.

Avatar
Hamish

Community Member, 712 Posts

6 January 2009 at 10:50am

Actually, the password is salted, so not that easy.

If you only have one user (or you don't mind adding your users back), delete all members (SQL: DELETE FROM MEMBER;) then run:

http://example.com/dev/build?username=admin&password=password

...to set a new admin user and password.

Avatar
(deleted)

Community Member, 473 Posts

6 January 2009 at 11:50am

Or you could set a default login, by adding Security::setDefaultAdmin('username', 'password'); to mysite/_config.php.

Then you can log in, and change your password. You may want to remove the default login (by removing the line) afterwards.

Avatar
Sam

Administrator, 690 Posts

6 January 2009 at 4:30pm

The other thing that you can do in the database is to find your admin user's entry in the member table, and make the following changes:

* set the Password field to your unencrypted password
* set the PasswordEncryption field to 'none'

After you've done this, you can log in and change the password, and it will be overwritten with an encrypted password.

Avatar
twosoul

Community Member, 2 Posts

7 January 2009 at 4:46am

Thanks for all the great answers! I'm all set now.

Cheers,
Mac

Avatar
Sigurd

Forum Moderator, 628 Posts

12 May 2009 at 7:28am

I've written one of the techniques up at:
http://doc.silverstripe.com/doku.php?id=recovering_password

So you can follow those easy instructions.

Avatar
bummzack

Community Member, 904 Posts

10 June 2009 at 10:21pm

@happykaka: This issue was all about the SilverStripe CMS and not how to unlock a Windows Account Password... Posts like yours are considered SPAM in my book.

Go to Top