Search code examples
visual-studiopasswordsumbracoadmin

Umbraco: Admin password retrieval


I am using Visual Studio 2015 to install the umbraco through nuget. I have setup and running the demo site and logging into the backoffice screen. The next day I go and run the site again and try to log into the backoffice but i can't log into it. Assuming my password typed wrong. I went to 'forgot my password' page to reset my password but ican't receive any email from it.

I looked at the database but the password was hashed.

How do i get the password.


Solution

  • Forgot password e-mail won't be sent if you haven't configured SMTP settings in your web.config file. But the problem is probably caused by different things e.g.:

    1. DateTime change between system and database - it may cause problems with synchronization.
    2. System files permissions (e.g. I'm struggling with Windows problem now which is resetting my user permissions from time to time... thanks Microsoft... and I'm unable to authorize my users in the backoffice from time to time).

    If it's anything from above list, you need to perform additional checks and steps to solve the problem. But starting from resetting the password, the easiest way to solve your problem may be to use this simple, little package: https://our.umbraco.org/projects/developer-tools/umbraco-admin-reset/ (DLL basically). When you'll place this DLL in the /bin directory, during the app startup, it will reset your base user (with ID = 0) to login: Admin and password: Admin1234!.