Custom Fields in Membership
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
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.
the Telerik team
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?
Can this user class be extended through Dynamic Fields?
Something like :
.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...
At this stage you cannot add custom dynamic fields to Telerik.Sitefinity.Security.Model.User class.
the Telerik team