User Authentication and Password Reset Flow
00:00 So we've got a little bit more work to do. Right now, we're saying, hi, get this from the session, but that's supposed to be our username. So we've got to retrieve the username out of the cookie. So first of all, we want to make sure that there is a username in there. If there's not, then we haven't actually properly verified, and we shouldn't even be here in the first place.
00:18 So we'll kick people out if they're logged in. They shouldn't be logged in to be here either. So if you're anonymous, we're going to kick you. Or if you're not anonymous, we're going to kick you out. If you don't have a username in your cookie, you haven't verified a username, then we're going to kick you out. But if you have, then we'll allow you to fill in this form, and then we'll use that username that's in the cookie
00:38 to perform the password reset with this reset password form. And then we'll send you over to login so that you can log in with that new password. So that is your task for this exercise. Have a good time.