Join Jess Chadwick for an in-depth discussion in this video Use identity services to allow users to log in to your site, part of Learning ASP.NET Core MVC.
- [Instructor] Now that users are able…to create accounts on our site, let's implement…a login page to allow those users to login.…Just like before, I'll be copying a premade model and view…from the exercise files to get us started.…First, there's the model,…which I've called Login View Model,…and put it in the Models Account folder.…If this looks a lot like the register view model…from the previous videos, that's because I just copied…that register view model and I changed its name.…Here's a hint, I did the same thing…with the view I'm about to show you as well.…
And here's the view, where users can submit their user name…and password to be authenticated.…And finally, back to the account controller,…where I'll add a pair of login methods.…The identity services helper class I'm going to use…to authenticate the user is called sign in manager.…So I'll add it to the constructor…right alongside its sibling, the user manager.…Now I can go back to the login action…and call the signin manager dot password signin async method…
- Building blocks of ASP.NET Core applications
- Creating a new project
- Responding to HTTP requests
- Serving static files
- Understanding the MVC pattern
- Handling requests with controllers
- Rendering HTML with Razor
- Rendering data, view markup, and view logic
- Creating HTML forms
- Validating form data
- Reading and writing from a database with Entity Framework
- Improving the user experience
- Exposing data with a web API
- Securing your ASP.NET application
Skill Level Intermediate
1. The Basics
2. The Model-View-Controller (MVC) Pattern
Understand routing4m 24s
3. Render HTML with Views
4. Work with Data
5. Improve User Experience with Ajax and Web APIs
6. Secure Your Application
Next steps1m 42s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.