Click here to Skip to main content
15,914,642 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I am very new to mvc.
I want to change the login functionality that is available by default in a mvc application and map the username passwords into a table that i have created.
I am using entity framework 4.0 and mvc 3.
Please help.

Thanks in advance.
Posted
v2

The solution proposed by Tadit Dash is good, but that is the simplest way. The problem with it is, that you mix a "helper" that should serve on or more of your applications with your application logic. In general that is not the place and the means to do this.
In VS you have two templates, one uses windows authentication (actually IIS is doing it), the other has compact SQL database as backend to store the role and membership information. These are the keywords if you want a complete custom solution: you need to implement a membership provider[^] and a role provider[^]. At this level a Microsoft MVC application is just a n ASP.NET application.
You can go further, like presented in this article: Custom MembershipProvider and RoleProvider Implementations that use Web Services[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900