More in this section

Forums / General Discussions / Custom Fields in Membership

Custom Fields in Membership

5 posts, 1 answered
  1. Preetham Reddy
    Preetham Reddy avatar
    57 posts
    Registered:
    16 Jul 2012
    24 Dec 2010
    Link to this post
    Hi,

    I am evaluating Sitefinity for my new project and I need answers to several questions : 

    I want to be able to add few extra fields for the user in the database. Also, I want to provide the ability for the user to login using Email (not userid) and Password and also through Facebook/OpenID/Twitter etc.,.

    Can you guide me on how to implement such kind of functionality?

    Thanks a lot for your help

    --
    Preetham Reddy
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    24 Dec 2010
    Link to this post
    Hi Preetham,

    To add custom membership fields you have to

    1. Create a custom data layer to persist your data for the custom fileds

    2. Create a custom membership provider that extends our OpenAccessMembershipProvider with methods which will use to work with your custom fields

    3. Create a custom class that inherits from Telerik.Sitefinity.Security.Model.User and implement several properties that you will use to get/set data to the custom fields you have added.


    The user name of your user could be the email address. You just have to use an email for the username when a user is being registered.

    We have Twitter and Facebook pipes that allows you to make posts there directly from the UI of Sitefinity - when you create a new blog post.


    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  3. Preetham Reddy
    Preetham Reddy avatar
    57 posts
    Registered:
    16 Jul 2012
    24 Dec 2010
    Link to this post
    Hi Ivan,

    Thank you so much for the direction. I am going to implement it today and will let you know if I hit any further road block.

    Also, Do you know when are Twitter and Facebook Pipelines going to be available for us? Do we have to wait until the official release? I can see Twitter and Facebook nodes in the Administration > Settings > Advanced.

    I don't know what to do with them. Can you provide me some direction?
  4. Preetham Reddy
    Preetham Reddy avatar
    57 posts
    Registered:
    16 Jul 2012
    26 Dec 2010
    Link to this post
    Hi,

    Can this user class be extended through Dynamic Fields? 

    Something like : 

    App.WorkWith().DynamicData().Type(typeof(User))
                    .Field().TryCreateNew("DateofBirth", typeof(DateTime), ref changedDB).SaveChanges(true);

    If this can work... it's fantastic... If not, I can extend OpenAccess OpenAccessMembershipProvider...

    Please let me know...
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    27 Dec 2010
    Link to this post
    Hello Preetham,

    At this stage you cannot add custom dynamic fields to Telerik.Sitefinity.Security.Model.User class.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
5 posts, 1 answered