I want to use authentication on my ASP.NET MVC site. All I need is a place for users to log in, a page for adding a user, and a page for editing a user.
I use all the standard ASP.NET authentication tables for SQL Server (aspnet_Profile, aspnet_Roles, aspnet_Users, etc.). The only difference is that I added the Employees table to my database, which contains the FK for aspnet_Users to create a one-to-one relationship. The Employees table contains columns for FirstName, LastName, StartDate, etc. This is a way to store additional information for users.
I am having trouble finding any tutorial that will help me create a basic page in MVC, all I find is for WebForms. For my page to add a user, I would like there to be fields for the Employees table. I don’t know if I can modify CreateUserWizard to add these fields, or if I would be better off just creating my own page.
Can someone lead me in the right direction?
source
share