So we have a newly entered user in the database and we have what I hope is the correctly hashed password
or the password hash, so let's test out our login screen.
So let me get make sure my application is running.
It is not.
So let's run it.
Let's reload this page to make sure the CSF token is up to date and first of all, let's try nothing
and that worked and let's put in something I know is wrong at here.
Dotcom with a password.
And it gave me the correct message, which is good.
Now let's try logging with the right information.
And I used admin at admin dot com and I used the password password and hopefully this will Lagus in.
Wow.
That seemed to work.
Now, clearly, there are some problems.
This login should now say log out.
So we have to have some means of determining whether or not the person is logged in.
So we use the middleware we created for that.
But we also need to modify the base, template the layout for the entire site to check to see if the
user is logged in and to change this, to log out if they are.
And then we also need to create a handler and the necessary code to actually log a user out.
Fortunately, none of that is too difficult.
So we'll take care of that in the next lecture.