1 00:00:00,025 --> 00:00:07,941 [MUSIC] 2 00:00:07,941 --> 00:00:10,589 Our web app now has a user registration page that allows users to register by 3 00:00:10,589 --> 00:00:12,120 creating a new account. 4 00:00:12,120 --> 00:00:14,820 But we don't have a way for them to return later, and 5 00:00:14,820 --> 00:00:17,570 sign in using their existing account. 6 00:00:17,570 --> 00:00:22,300 In this section, we'll resolve that issue by adding support for user sign in and 7 00:00:22,300 --> 00:00:22,906 sign out. 8 00:00:22,906 --> 00:00:27,720 Our user Sign In page will be what you might expect it to be, 9 00:00:27,720 --> 00:00:31,290 a simple form that prompts the user for their username and password. 10 00:00:32,390 --> 00:00:37,680 Once they successfully sign in, they'll be redirected back to the homepage. 11 00:00:37,680 --> 00:00:39,830 When the user has completed their session, 12 00:00:39,830 --> 00:00:42,030 they can click the Sign Out button to sign out. 13 00:00:43,800 --> 00:00:47,125 In this section we'll start with adding support for sign-in and 14 00:00:47,125 --> 00:00:50,190 sign-out by updating the account controller class 15 00:00:50,190 --> 00:00:55,580 with the necessary action methods, and we'll add a new view model and view. 16 00:00:55,580 --> 00:01:00,800 We'll keep our code organized and tidy by refactoring the menu into a partial view. 17 00:01:00,800 --> 00:01:03,270 Then we'll update the menu partial view, so 18 00:01:03,270 --> 00:01:06,180 that it displays the current user's identity. 19 00:01:06,180 --> 00:01:10,130 And finally, we'll wrap up the section by seeing how we can restrict 20 00:01:10,130 --> 00:01:15,750 access to specific routes in our web app, so that users are required to sign in. 21 00:01:15,750 --> 00:01:16,850 Are you ready? 22 00:01:16,850 --> 00:01:17,590 Let's get started.