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
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+
YoursDirk
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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:
This code uses the Management API for v6+
Yours
Dirk
is working on a reply...