How can I unlock a user that has been locked out through the database with an sql script?
I have two admins in my application that have been locked out and I want to unlock them. I have full access to the database but I cant find a isLockedOut column anywhere.
How can I unlock a user that has been locked out through the database with an sql script?
I have two admins in my application that have been locked out and I want to unlock them. I have full access to the database but I cant find a isLockedOut column anywhere.
How does Umbraco know that a user is locked out?
Hi Nik,
this should do the unlocking:
var userService = ApplicationContext.Current.Services.UserService; var newUserModel = userService.GetUserById(userId); if (newUserModel != null) { newUserModel.IsLockedOut = false; userService.Save(newUserModel, false); }This code uses the Management API for v6+
Yours
Dirk
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.