+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / How does one unlock a locked out user through the Administration UI?

How does one unlock a locked out user through the Administration UI?

4 posts, 0 answered
  1. Dave
    Dave avatar
    76 posts
    Registered:
    10 Mar 2008
    04 Apr 2014
    Link to this post

    I'm able to find how to do it programmatically, but having trouble finding it in the backend UI.

    Thanks!

    Dave

  2. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    09 Sep 2016
    09 Apr 2014
    Link to this post
    Hi,

    A user account is locked after 5 consecutive unsuccessful login attempts. You can easily unlock a user programatically, for example:

    var userMan = UserManager.GetManager("Default");
               //you won't need this if you'll be doing it from your site's backend and you already have sufficient privileges to perform this action
               userMan.Provider.SuppressSecurityChecks = true;
               //you can also use one of the userMan.GetUser() overloads
               var user = userMan.GetUserByEmail("test@test.com");
               if (user != null)
               {
                   userMan.UnlockUser(user);
                   userMan.SaveChanges();
               }

    ​By design in case a user has locked his/her account, the UI offers the option of resetting the user's password. Currently there is no UI exposed for unlocking a user.

    Regards,
    Stefani Tacheva
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Laura
    Laura avatar
    311 posts
    Registered:
    25 Feb 2008
    11 Dec 2014 in reply to Stefani Tacheva
    Link to this post

    Hi Stefani,

    You stated above that "By design in case a user has locked his/her account, the UI offers the option of resetting the user's password. "  

    In my experience when a user locks themselves out, you can't reset their password through the backend UI for security reasons.  So for instance, if you click on Reset Password, the little yellow box doesn't appear with the randomized password.

    Am I missing something? Is there another way? I have this exact scenario on my hands now...

    Thank you.
    Laura

  4. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    09 Sep 2016
    06 Apr 2015
    Link to this post
    Hi,

    As an administrator you can reset the users password anytime you want. If the user is locked you have the ability to unlock his/her account. To see the yellow box under "Once created the username cannot be changed" you need to the following parameters configured in your system:

    1. recoveryMailAddress
    2. enablePasswordReset 

    Which can be found under Administration -> Settings -> Advanced -> Security -> Membership Providers -> Default.

    Further details can be found in our documentation:

    http://docs.sitefinity.com/administration-configure-the-password-recovery-link

    or in the following KB article.

    Regards,
    Stefani Tacheva
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
4 posts, 0 answered