Basic Add-on / Modify User Form Authentication Features in ASP.NET MVC

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?

+3
source share
2 answers

ASP.NET MVC has tutorials:
http://www.asp.net/mvc

The Create Your First tutorial covers all the basics of MVC, including authentication. After that, you can link your Employee tables to Membership tables, and you will learn how to deliver this data to MVC View.

+2

Source: https://habr.com/ru/post/1783436/


All Articles