I lost my Umbraco admin password, now what?

A tool to re-set your umbraco user password

  • Share

So you got a new requirement for the website you worked on ages ago. You try to login to Umbraco but your password is not correct. It is OK, oyu have access to database and filesystem. Still, you do not know your login or U and dispite all granted access you have, there is still Umbraco backend which you cannot access.

Note

So far, Umbraco did not provide reset password for user accounts, but if you think this might be useful please vote for my siggestion at umbraco forum http://our.umbraco.org/forum/ourumb-dev-forum/features/49860-Reset-password-for-Users

Umbraco user passwords are stored it your Umbraco database in table umbracoUser, column userPassword but passwords here are hashed, so just putting a new value will not help. It requires hashed value, which you need to generate.

Umbtableuserrecord

Umbraco uses simple hashing and with just few lines of code you can generate your hashed password and put it in userPassword column in table umbracoUser table for your user account.

The following is code which generates hash value from plain string.

string password = "mypassword";
HMACSHA1 hash = new HMACSHA1();
hash.Key = Encoding.Unicode.GetBytes(password);
string encodedPassword = Convert.ToBase64String(hash.ComputeHash(Encoding.Unicode.GetBytes(password)));
    

You can use this sample code to generate your password hash or you can just download simple console app which uses this snippet code and generates hashed value for you.

Umbracopasswordhashgenerator

Simply use generated hash password and update record in table and voilĂ , you will be able to login to Umbraco backend with your new password.

  • Share

Disclaimer

Purpose of the code contained in snippets or available for download in this article is solely for learning and demo purposes. Author will not be held responsible for any failure or damages caused due to any other usage.

Comments for this article

comments powered by Disqus