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,
try to use this code :
var userService = ApplicationContext.Current.Services.UserService; var newUserModel = userService.GetUserById(userId); if (newUserModel != null) { newUserModel.IsLockedOut = false; userService.Save(newUserModel, false); }
User locks in IsLockedOut property.
Thanks
You can also do it in the DB
You will find some more information here : http://our.umbraco.org/forum/umbraco-7/using-umbraco-7/52934-Login-Umbraco7?p=1
Dave
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,
try to use this code :
User locks in IsLockedOut property.
Thanks
You can also do it in the DB
You will find some more information here : http://our.umbraco.org/forum/umbraco-7/using-umbraco-7/52934-Login-Umbraco7?p=1
Dave
is working on a reply...