- Roll your own class which inheirts from MembershipProvider.
- Add a membership node within the system.web stuff at Web.config to tell .NET to use your class whenever membership is called out to like so:
var x = System.Web.Security.Membership.GetUser().UserName;
Membership Provider is a web forms thing which doesn't exist in MVC. It's counterpart is Identity in that space.
No comments:
Post a Comment