Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
- Overview of Adding User Registration 2:56
- Adding the User Registration Page
- Defining Our User Class
- Adding the ApplicationUserManager and ApplicationSignInManager Classes
- Updating Our DI Configuration
- Configuring the Identity OWIN Middleware Component
- Updating the Account Controller
- Updating the Layout Page
- Reviewing User Registration 6:25
- Section Review 5 questions
Well done!
You have completed User Authentication with ASP.NET Identity!
Instruction
Updating the Layout Page
Before we test our changes, let's update the layout page so that users will know when they're signed-in. We'll update the top menu to display "Register" and "Sign In" buttons if the user isn't authenticated, and "Add Entry" and "Sign Out" buttons if the user is authenticated.
Go ahead and open the "_Layout.cshtml" file located in the "Views/Shared" folder.