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
Is there a way reset the admin password, in version 7.6.1 I have tried all the method that been described in previous article non of them worked.
I even tried a fresh install and used the values from "userPassword" & "securityStampToken" into the locked user.
Any reason why reset password doesn't work?
Yes, you can use the below code snippet for resetting the admin password
var user = ApplicationContext.Services.UserService.GetUserById(userId);
if (user != null)
user.Username = userName;
user.IsApproved = true;
user.IsLockedOut = false;
Did you check if user isn't locked out? The userNoConsole field in the database should have value 0. If it has value 1 the user is locked out.
Note: If you change this value from 1 to 0 you need to restart your webapp.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted