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

Forums / Developing with Sitefinity / Extending the membership provider

Extending the membership provider

2 posts, 0 answered
  1. Ross Reichardt
    Ross Reichardt avatar
    31 posts
    Registered:
    14 Aug 2009
    08 Feb 2010
    Link to this post

    Hi team.

    I would like to extend the standard Sitefinity membership provider to allow for different logon rules and some more fields for a user. I have seen how to add properties to the user profile but I want some of these fields to be part of the user and not the users profile.

    How to I edit the administration pages so that when I add a user, my extra fields are available. I assume it is similar to adding user profile fields but I have not seen documetation on doing it for user fields. Is there some documentation which disusses that?

    Also, how do you enable and disable a user account?

    How do you unlock a user account if it gets locked out?

    Why does a user account get locked out?

    Thanks for your assistance?

    Regards,

    Ross.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    08 Feb 2010
    Link to this post
    Hi Ross Reichardt,

    There is no document that explains how to extend the users profile section. The way is similar to managing profile data.

    You have to add your controls in ~/Sitefinity/Admin/CmsAdmin/Users.aspx inside ManageUsers tags. There is another control called ManageProfile which is responsible for persisting profile data.

    Also, how do you enable and disable a user account?

    You can create a checkbox is the template that actually sets MembershipUser.IsApproved Property

    How do you unlock a user account if it gets locked out?


    Since we use ASP.NET Membership provider, you can unlock an user as it is shown in this MSDN article - MembershipUser.IsLockedOut Property . Otherwise the locked status expires after about 10 minutes - take a look at Membership.PasswordAttemptWindow Property

    Why does a user account get locked out?


    If the maxInvalidPasswordAttempts are reached the user gets locked.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
2 posts, 0 answered