From the course: Learning ASP.NET Core MVC

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Use identity services to create user accounts

Use identity services to create user accounts

From the course: Learning ASP.NET Core MVC

Start my 1-month free trial

Use identity services to create user accounts

- [Instructor] With identity services added to my application and ready to go, it's time to start using those services to allow visitors to register themselves as users of my site. In order to allow users to post their registration information to the site, I'm going to start with a basic model, view, and controller. And, since I've shown you how to do all of this already, I'll just copy them from the exercise files then go back and walk you through each one to explain what it does. First, I created a model named register view model in a new folder named account to represent the registration information that a new user will have to provide. Properties such as email address and password. Then I use this model to create a strongly typed view with an HTML form for users to enter their information. I called this view register.cshtml and put it in the slash views slash account folder which is the same name as this new controller that I added, account controller. However, this controller is…

Contents