I have a bit of a problem.
Yesterday I tried to login to Umbraco, but I've forgotten my password.
I tried to many times, and now I've been locked out for more than 12 hours.
I have locked my account before. I reset the password by creating a new ASPX page and execute the following code in the Page_Load event. The ID is determined by umbracoUser.id column in the database.
var userService = ApplicationContext.Current.Services.UserService;
var newUserModel = userService.GetUserById(1);
if (newUserModel != null)
{
newUserModel.RawPasswordValue = "abc";
newUserModel.IsLockedOut = false;
userService.Save(newUserModel, false);
}
If you type the wrong password to many times, your user will be locked out.
You can however unlock the user by going to the database table dbo.umbracoUser, and make sure that the column userNoConsole is false/0.
Admin locked out
Hi all
I have a bit of a problem. Yesterday I tried to login to Umbraco, but I've forgotten my password. I tried to many times, and now I've been locked out for more than 12 hours.
I use the SQL CE database, and tried to download this file: https://our.umbraco.org/projects/developer-tools/umbraco-admin-reset/
But it doesn't seem to work. Any ideas, what to do know?
Hi Peter,
I have locked my account before. I reset the password by creating a new ASPX page and execute the following code in the Page_Load event. The ID is determined by umbracoUser.id column in the database.
Dom
Thank you for the suggestion Dominic.
Dom,
That will set the db field with that password... Unless you have the password set to "clear" on the correct membership provider, it won't work...
The user service has a SavePassword method that saves the password correctly (even if is hashed). See the source code on https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Core/Services/UserService.cs#L257
Hi Peter.
If you type the wrong password to many times, your user will be locked out. You can however unlock the user by going to the database table dbo.umbracoUser, and make sure that the column userNoConsole is false/0.
If you dont have a software for opening and edititing CE files, i recommend this free software: https://sourceforge.net/projects/compactview/
Best of luck!
Dennis
Thx Dennis That was the perfect solution :)
Thank you Peter, glad that i could help!
Take care!
is working on a reply...