Click here to Skip to main content
15,880,796 members
Articles / Web Development / ASP.NET

Custom Membership Providers

Rate me:
Please Sign up or sign in to vote.
4.78/5 (69 votes)
18 Oct 2013CPOL11 min read 462.3K   19.4K   222  
This article concentrates on implementing forms authentication for an ASP.NET MVC application.
using System.Web.Security;

namespace CustomMembershipEF.Interfaces
{
    public interface IMembershipService
    {
        int MinPasswordLength { get; }

        bool ValidateUser(string userName, string password);
        MembershipCreateStatus CreateUser(string userName, string password, string email);
        bool ChangePassword(string userName, string oldPassword, string newPassword);
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
Just another passionate software developer!

Some of the contributions to the open source world - a blog engine written in MVC 4 - sBlog.Net. Check it out here. For the codeproject article regarding sBlog.Net click here!

(Figuring out this section!)

Comments and Discussions