Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 05, 2013 01:57 AM by CPrakash82
Member
2 Points
6 Posts
Jan 04, 2013 11:18 AM|LINK
Hi,
I am using SimpleMembershipProvider and I want to validate users. But according to this I should not initialize with WebSecurity.InitializeDatabaseConnection() and instead enable standard membership and role providers.
How can enable it? thanks
All-Star
18154 Points
2831 Posts
Jan 05, 2013 01:57 AM|LINK
You should be able to configure the membership and role provider and then use below lines to call ValidateUser Method.
var membership = (SimpleMembershipProvider) Membership.Provider;
membership.ValidateUser()
refer this article.
http://odetocode.com/Blogs/scott/archive/2012/08/31/seeding-membership-amp-roles-in-asp-net-mvc-4.aspx
Gazme
Member
2 Points
6 Posts
How to access ValidateUser method of SimpleMembershipProvider class?
Jan 04, 2013 11:18 AM|LINK
Hi,
I am using SimpleMembershipProvider and I want to validate users. But according to this I should not initialize with WebSecurity.InitializeDatabaseConnection() and instead enable standard membership and role providers.
How can enable it? thanks
CPrakash82
All-Star
18154 Points
2831 Posts
Re: How to access ValidateUser method of SimpleMembershipProvider class?
Jan 05, 2013 01:57 AM|LINK
You should be able to configure the membership and role provider and then use below lines to call ValidateUser Method.
var membership = (SimpleMembershipProvider) Membership.Provider;
membership.ValidateUser()
refer this article.
http://odetocode.com/Blogs/scott/archive/2012/08/31/seeding-membership-amp-roles-in-asp-net-mvc-4.aspx