Umbraco 7.6.5 reset admin password in database - not working
a few days ago I set up an Umbraco 7.6.5 VS studio project with nuget on my localhost. Ran it, set up the database etc, but that is as far as I got.
Since there are different/longer password requirements in 7 than in 6 (which after I found I can change in web.config), I put in a diffrent password than I usually do for development.
Today I forgot the password, so couldn't log in.
BUT, it is not working as it always has in the past. I even tried a few of the different hashes from that article. Still no go.
I cannot do the 'forgot password' link because I don't have any mail server set up on my localhost (and not allowed to install one) so just get an error when trying that.
Since I just set the project up, I can easily just delete the whole database and start fresh. BUT, wondering if something has changed and why this hack is no longer working to fix our forgotten password (or sometimes never given in the case of inherited from someone who quit the company)?
I know you can change the password to plain text from hashed within the web.config. You might need to give this a quick google but here is the section in the web.config that needs updating.
David - while I appreciated you trying to help, actually I meant I redid the steps I stated in my initial question and that worked. (copy/pasting the password between databases)
thanks
Although it will not help anyone having problems with the actual password, it will probably help if you need to use the "forgotten password" link but have no mail server.
Remember you can always set a local drop folder for your email's in the webconfig:
Umbraco 7.6.5 reset admin password in database - not working
a few days ago I set up an Umbraco 7.6.5 VS studio project with nuget on my localhost. Ran it, set up the database etc, but that is as far as I got. Since there are different/longer password requirements in 7 than in 6 (which after I found I can change in web.config), I put in a diffrent password than I usually do for development. Today I forgot the password, so couldn't log in.
Having done this a ton before (on older versions of Umbraco) I just went to the database table umbracoUser and pasted in the hashed password from another instance. Basically did what is described in this article: http://jondjones.com/learn-umbraco-cms/umbraco-developers-guide/umbraco-troubleshooting/reset-your-umbraco-7-password-manually-via-the-database.
BUT, it is not working as it always has in the past. I even tried a few of the different hashes from that article. Still no go. I cannot do the 'forgot password' link because I don't have any mail server set up on my localhost (and not allowed to install one) so just get an error when trying that.
Since I just set the project up, I can easily just delete the whole database and start fresh. BUT, wondering if something has changed and why this hack is no longer working to fix our forgotten password (or sometimes never given in the case of inherited from someone who quit the company)?
Hi Karen,
I am guessing this might work but not 100%.
I know you can change the password to plain text from hashed within the web.config. You might need to give this a quick google but here is the section in the web.config that needs updating.
Once this is updated re-load the project and then do in the database and set a plain text password.
See if this then lets you in. Hopefully it should work for you.
Kind Regards
David
Not sure this will work, because I will need to set it back to encrypted.
Well I just did this again and it worked just fine. Not sure why it did not work awhile ago!
Hi Karen,
Glad I could be of some assistance. Feel free to make this post as complete and save other people getting involved with an answer.
Kind Regards
David
FYI: There is also a really cool package that does this for you also:
https://our.umbraco.org/projects/developer-tools/umbraco-admin-reset/
Used it several times now and it works perfectly!
David - while I appreciated you trying to help, actually I meant I redid the steps I stated in my initial question and that worked. (copy/pasting the password between databases) thanks
Arrr got you now.
Glad you got it fixed anyway.
Kind Regards
David
I thought I'd add this ..
Although it will not help anyone having problems with the actual password, it will probably help if you need to use the "forgotten password" link but have no mail server.
Remember you can always set a local drop folder for your email's in the webconfig:
Then you don't need a mail server and you can still get the emails :)
is working on a reply...