Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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)?
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.
<membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15">
<add name="UmbracoMembershipProvider" type="Umbraco.Web.Security.Providers.MembersMembershipProvider, Umbraco" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="5" useLegacyEncoding="false" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Member" passwordFormat="Clear" allowManuallyChangingPassword="false" />
<add name="UsersMembershipProvider" type="Umbraco.Web.Security.Providers.UsersMembershipProvider, Umbraco" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="5" useLegacyEncoding="false" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" allowManuallyChangingPassword="false" />
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.
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!
Glad I could be of some assistance. Feel free to make this post as complete and save other people getting involved with an answer.
FYI: There is also a really cool package that does this for you also:
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)
Arrr got you now.
Glad you got it fixed anyway.
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...
Write your reply to:
Image will be uploaded when post is submitted